Skip to content
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

FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints/train_sigurdsson/config.json' #6

Open
manxiaoyu opened this issue Apr 19, 2024 · 0 comments

Comments

@manxiaoyu
Copy link

I get the error descriped as below,hoever,I dont know where is the folder named train_sigurdsson?and how to fix it. Most important, the checkpoints you published doesnt include this foder:

2024-04-19 15:11:30 | INFO | fairseq.tasks.text_to_speech | Please install tensorboardX: pip install tensorboardX
Namespace(alpha_xm=False, augment_image=True, batch_size=128, checkpoint_dir='checkpoints', checkpoint_path='checkpoints/train_sigurdsson', checkpoint_path_load_from='checkpoints/train_sigurdsson', config_arch='config', config_data='all-lang_test-zh-en', dataset_info_path='dataset_info', dataset_path='dataset', debug=False, evaluate=False, fp16=True, image_size=224, lambda_lm_loss=0.0, lambda_orthogonality_loss=1.0, lambda_visual_loss=0.0, lambda_xlang_loss=0.0, lambda_xm_loss=1.0, language_split='training', learning_rate=0.001, local_rank=0, max_txt_seq_len=50, momentum_bn=0.1, name='train_sigurdsson', not_use_images=False, num_epochs=100, opt_level='O1', output_attentions=False, p_clobber_other_txt=0.0, p_mask=0.0, pretrained_cnn=False, print_freq=1, prob_predict_token=0.0, results_dir='results', results_path='results/train_sigurdsson', resume=True, resume_but_restart=False, resume_epoch=-1, resume_latest=False, resume_name='train_sigurdsson', runs_dir='runs', seed=0, sigurdsson=True, test=True, test_name='extract_features', test_options='val', tokenizer_path=None, tokenizer_type='huggingface', two_heads_modality=False, workers=20)
2024-04-19 15:11:31 | INFO | torch.distributed.distributed_c10d | Added key: store_based_barrier_key:1 to store for rank: 0
2024-04-19 15:11:31 | INFO | torch.distributed.distributed_c10d | Rank 0: Completed store-based barrier for key:store_based_barrier_key:1 with 1 nodes.
Preparing dataset
dataset_info/tokenizer_all-lang_test-zh-en_30000-vocab.json
Preparing model
Traceback (most recent call last):
  File "main.py", line 262, in <module>
    main()
  File "main.py", line 216, in main
    model = models.SigurdssonModel(config_from, list_lang, fn_cfg=args.config_arch, pretrained_cnn=args.pretrained_cnn,
  File "/media/visionx/monica/newproject/globetrotter/models.py", line 265, in __init__
    cfg = BertConfig.from_json_file(os.path.join(path, f'{fn_cfg}.json'))
  File "/home/visionx/anaconda3/envs/globetrotter/lib/python3.8/site-packages/transformers/configuration_utils.py", line 436, in from_json_file
    config_dict = cls._dict_from_json_file(json_file)
  File "/home/visionx/anaconda3/envs/globetrotter/lib/python3.8/site-packages/transformers/configuration_utils.py", line 441, in _dict_from_json_file
    with open(json_file, "r", encoding="utf-8") as reader:
FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints/train_sigurdsson/config.json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant