0

I am training Mask R-CNN on my own dataset and when I change runtime type in google colab to "GPU" the following error occurs

python3: can't open file 'drive/My Drive/damage/custom.py': [Errno 2] No such file or directory

But when I change the runtime to "None" the training starts normally. How should I fix it?

Amit Yadav
  • 4,422
  • 5
  • 34
  • 79
Qysr
  • 1
  • 1
  • 6

3 Answers3

0

Save the file format as ".ipynb" and you would be able to load the code. Thanks.

Prachi
  • 402
  • 1
  • 5
  • 10
0

You must mount Google drive first. After that you'll be able to access files from drive.

from google.colab import drive
drive.mount('/content/drive')

PS: content/gdrive is no longer in use.

Taiwotman
  • 885
  • 14
  • 27
0

When you change runtime type, you will loose or your mounted drives too, so you should mount your drive again and if you use local colab space, you should upload again your files.