Подключите Google Диск к Google Colab с доступом на записьPython

Программы на Python
Anonymous
Подключите Google Диск к Google Colab с доступом на запись

Сообщение Anonymous »

Как мне подключить мой Google Диск к Google Colab с доступом запись?
Это потому, что я получаю сообщение об ошибке, когда моя модель ИИ пытается обновиться. файл на Google Диске:
Traceback (most recent call last):
File "/content/Deep3DFaceRecon_pytorch/test.py", line 72, in
opt = TestOptions().parse() # get test options
^^^^^^^^^^^^^^^^^^^^^
File "/content/Deep3DFaceRecon_pytorch/options/base_options.py", line 167, in parse
self.print_options(opt)
File "/content/Deep3DFaceRecon_pytorch/options/base_options.py", line 115, in print_options
with open(file_name, 'wt') as opt_file:
^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 30] Read-only file system: './checkpoints/facerecon_20230425/test_opt.txt'

Кстати, я уже скопировал свои папки с Google Диска в Google Colab:
!git clone https://github.com/sicxu/Deep3DFaceRecon_pytorch.git
%cd Deep3DFaceRecon_pytorch

...

!mkdir checkpoints
!cp -r ../drive/MyDrive/Deep3D/facerecon_20230425 checkpoints/

...

ОБНОВЛЕНИЕ
В Google Colab при попытке создать файл на подключенном Google Диске возникает ошибка:
!touch ./checkpoints/facerecon_20230425/test_opt.txt

Журнал:
touch: cannot touch './checkpoints/facerecon_20230425/test_opt.txt': Read-only file system


Подробнее здесь: https://stackoverflow.com/questions/783 ... ite-access

Вернуться в «Python»