Skip to content
Snippets Groups Projects
Commit 7d7a2508 authored by Julien Dejasmin's avatar Julien Dejasmin
Browse files

new archi omniglot CNN

parent 753028ef
No related branches found
No related tags found
No related merge requests found
Showing
with 10 additions and 10 deletions
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
...@@ -13,24 +13,24 @@ batch_size_test = 64 ...@@ -13,24 +13,24 @@ batch_size_test = 64
train_loader, valid_loader, test_loader = get_omniglot_dataloaders_classification(batch_size_train, batch_size_test) train_loader, valid_loader, test_loader = get_omniglot_dataloaders_classification(batch_size_train, batch_size_test)
# parameters default values # parameters default values
epochs = 100 epochs = 50
lr = 1e-3 lr = 1e-3
momentum = 0.9 momentum = 0.9
log_interval = 10 # how many batches to wait before logging training status log_interval = 10 # how many batches to wait before logging training status
criterion = F.nll_loss criterion = F.nll_loss
# parameters model to load no Binary model # parameters model to load no Binary model
binary = False #binary = False
model_no_binary, name_model = get_my_model_Omniglot(binary) #model_no_binary, name_model = get_my_model_Omniglot(binary)
print(name_model) #print(name_model)
path_model_checkpoint_no_binary = 'trained_models/Omniglot_classif/No_binary_models/' #path_model_checkpoint_no_binary = 'trained_models/Omniglot_classif/No_binary_models/'
path_save_plot_no_binary = 'results/Omniglot_results/plot_acc_loss/Omniglot_classif/' #path_save_plot_no_binary = 'results/Omniglot_results/plot_acc_loss/Omniglot_classif/'
print('Begin running No Binary model') #print('Begin running No Binary model')
run(model_no_binary, path_model_checkpoint_no_binary, path_save_plot_no_binary, name_model, train_loader, valid_loader, #run(model_no_binary, path_model_checkpoint_no_binary, path_save_plot_no_binary, name_model, train_loader, valid_loader,
epochs, lr, momentum, criterion, log_interval) # epochs, lr, momentum, criterion, log_interval)
print('End running No Binary model') #print('End running No Binary model')
# parameters model to load no Binary model # parameters model to load no Binary model
binary = True binary = True
......
File added
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment