-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regularization_L2_beta error #23
Comments
Can you provide me a (minimal) reproducible example ? Maybe this error occurs when you combine different options? Feel free to adapt the example below to what is necessary to trigger the error if you want. using DINCAE
using Base.Iterators
using Random
using NCDatasets
using CUDA
const F = Float32
Atype = CuArray{F}
filename = "avhrr_sub_add_clouds_n10.nc"
if !isfile(filename)
download("https://dox.ulg.ac.be/index.php/s/2yFgNMkpsGumVSM/download", filename)
end
data = [
(filename = filename,
varname = "SST",
obs_err_std = 1,
jitter_std = 0.05,
isoutput = true,
)
]
data_test = data;
data_all = [data,data_test]
epochs = 3
batch_size = 5
save_each = 10
skipconnections = [1,2]
enc_nfilter_internal = round.(Int,32 * 2 .^ (0:3))
clip_grad = 5.0
save_epochs = [epochs]
ntime_win = 3
upsampling_method = :nearest
fnames_rec = [tempname()]
paramfile = tempname()
losses = DINCAE.reconstruct(
Atype,data_all,fnames_rec;
epochs = epochs,
batch_size = batch_size,
enc_nfilter_internal = enc_nfilter_internal,
clip_grad = clip_grad,
save_epochs = save_epochs,
upsampling_method = upsampling_method,
ntime_win = ntime_win,
paramfile = paramfile,
regularization_L2_beta = 0.001,
) Output for me:
Thanks! |
Hi, I altered the value of loss_weights_refine from (1.,) to (0.3,0.7) and faced the same error. The Hyperparameters that I am using for the test case: epochs = 3
batch_size = 5
skipconnections = [1,2]
enc_nfilter_internal = round.(Int,32 * 2 .^ (0:3))
regularization_L2_beta = 0.001
ntime_win = 3
upsampling_method = :nearest
loss_weights_refine = (0.3,0.7) ## With refinement
# loss_weights_refine = (1.,) ## without refinement
save_epochs = [epochs]
truth_uncertain = true
remove_mean=false |
Thanks, I could now reproduce the error and committed a fix. Does it also work for you? |
Thank you it is working now. |
Hi,
When I initialize DINCAE with regularization_L2_beta = 0.001, I recieve the following error.
The text was updated successfully, but these errors were encountered: