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 #1

Open
saladlin opened this issue Aug 11, 2021 · 3 comments
Open

FileNotFoundError #1

saladlin opened this issue Aug 11, 2021 · 3 comments

Comments

@saladlin
Copy link

Thank you very much for this excellent work!Congratulations!When I run train.py, I get FileNotFoundError: [Errno 2] No such file or directory:'../data/IMDB_LONG/dump_none.pkl'
I don't find the 'IMDB_LONG/dump_none.pkl'. Can you provide the IMDB_LONG/dump_none.pkl'?
Thank you for your help.

@pratyushmaini
Copy link
Collaborator

Thank you for your interest. Can you tell me the exact error message? The pickled files are only used in order to speed up the data loading process. When you run the program for the first time, it should automatically create a new pickle file.
Such as via line


where we first check if a pickle file is available, and if not make a new one.

If you can tell me where the exact error occurred, I can help better debug this. Thanks

@saladlin
Copy link
Author

Thank you for your interest. Can you tell me the exact error message? The pickled files are only used in order to speed up the data loading process. When you run the program for the first time, it should automatically create a new pickle file.
Such as via line

where we first check if a pickle file is available, and if not make a new one.
If you can tell me where the exact error occurred, I can help better debug this. Thanks

Thank you for your enthusiastic answer.
Is when I execute "Evaluate the Initial gradient distribution"
"Python train.py --pool att_max --data_size 20K --gpu_id 0 --mode train --batch_size 1 --task IMDB_LONG --wiki none --epochs 5 --gradients 1 --initial 1 --log 1- -customlstm 1"
Traceback (most recent call last):
File "D:/project/pool/train.py", line 47, in
TEXT, LABEL, train_iterator, valid_iterator, test_iterator = get_data(args, MAX_VOCAB_SIZE, device)
File "D:\project\pool\my_dataloader.py", line 137, in get_data
dump_pickle(args, TEXT, LABEL)
File "D:\project\pool\my_dataloader.py", line 116, in dump_pickle
fields={'s': ('text', TEXT), 'class': ('label', LABEL)})
File "C:\Users\WXL\anaconda3\envs\torch1.4\lib\site-packages\torchtext\data\dataset.py", line 78, in splits
os.path.join(path, train), **kwargs)
File "C:\Users\WXL\anaconda3\envs\torch1.4\lib\site-packages\torchtext\data\dataset.py", line 251, in init
with io.open(os.path.expanduser(path), encoding="utf8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '../data/IMDB_LONG\train_m.json'"
will appear, how can I solve it?

@pratyushmaini
Copy link
Collaborator

Hi! I am sorry, I totally missed the notification. Can you check if "../data/IMDB_LONG" folder was automatically created? I think this may be a permission issue

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

2 participants