-
Notifications
You must be signed in to change notification settings - Fork 1
Description
(py37) satya@revanth-vigil:~/CDNet/batch$ python pretrain_e.py --dataset multi --name cascade_e --testset CFEE --split val --color 3 --w_domain 1.0
Namespace(backbone='ResNet18', batch_size=64, benchmarks_dir='root to the data path/', checkpoint_dir='root to save the model', color=3, data_aug=False, dataset='multi', ft_n_epoch=50, group=7, img_size=224, k=256, log_dir='root to save the result5way_5shot_multi_CFEE_val_cascade_e_3_1.0_1.0_softMax_ResNet18', lr=0.001, method='softMax', mode='train', n_base_class=8, n_batches=100, n_domains=5, n_episodes=600, n_epoch=100, n_iters=10000, n_query=16, n_shot=5, n_way=5, name='cascade_e', num_workers=12, out_dim=512, over_fineTune=False, pretrain=False, projection_dim=128, results_dir='root to save the result', seed=10, split='val', teacher_name='root to pretrained encoder', temp=1, test_epoch=-1, test_n_way=5, testing_epochs=5, testset='CFEE', w_SIMCLR=1.0, w_base=1.0, w_c=0.0001, w_ce=1.0, w_de=1.0, w_domain=1.0, w_mi=1.0, w_pd=1.0, w_re=1.0, w_t=1.0)
Traceback (most recent call last):
File "pretrain_e.py", line 150, in
checkpoint = torch.load(os.path.join(args.checkpoint_dir, "base", teacher_name, "best_model.tar"))
File "/home/cho/anaconda3/envs/satyaPy373/lib/python3.8/site-packages/torch/serialization.py", line 699, in load
with _open_file_like(f, 'rb') as opened_file:
File "/home/cho/anaconda3/envs/satyaPy373/lib/python3.8/site-packages/torch/serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/home/cho/anaconda3/envs/satyaPy373/lib/python3.8/site-packages/torch/serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'root to save the model/base/root to pretrained encoder/best_model.tar'