Bert-Multi-Label-Text-Classification icon indicating copy to clipboard operation
Bert-Multi-Label-Text-Classification copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: 'pybert/output/checkpoints/bert'

Open Sajjadahmed668 opened this issue 6 years ago • 2 comments

Hi,

I am using google colab to run bert example. when i try to run with runtime normal I don't get any error. but when i change runtime to GPU/TPU I get the following error

'Traceback (most recent call last): File "/content/drive/My Drive/Colab_Notebooks/Bert/Bert-Multi-Label-Text-Classification-master/run_bert.py", line 223, in <module> main() File "/content/drive/My Drive/Colab_Notebooks/Bert/Bert-Multi-Label-Text-Classification-master/run_bert.py", line 198, in main config['checkpoint_dir'].mkdir(exist_ok=True) File "/usr/lib/python3.6/pathlib.py", line 1248, in mkdir self._accessor.mkdir(self, mode) File "/usr/lib/python3.6/pathlib.py", line 387, in wrapped return strfunc(str(pathobj), *args) FileNotFoundError: [Errno 2] No such file or directory: 'pybert/output/checkpoints/bert'

When i check this directory It has no bert folder in colab but in google drive i can see this directory with bert folder. what the issue with GPU and TPU don't retrive this directory pls help me.

Thanks Sajjad Ahmed

Sajjadahmed668 avatar Nov 20 '19 07:11 Sajjadahmed668

@Sajjadahmed668 hi,Maybe you can refer to https://stackoverflow.com/questions/51870056/colab-no-such-file-or-directory

lonePatient avatar Nov 25 '19 09:11 lonePatient

@lonePatient hi, Thanks for your response. but I am newbie to python. I can't understand the link you have refer to me.How it related to my problem?

Sajjadahmed668 avatar Dec 01 '19 14:12 Sajjadahmed668