Traceback (most recent call last):
File “/usr/lib/python3.9/shutil.py”, line 825, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: ‘/root/.cache/gdown/tmpy7fwlnhj/dl’ -> ‘_DATA/hmar_v2_weights.pth’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/content/PHALP/demo_online.py”, line 195, in
phalp_tracker = PHALP_tracker(opt)
File “/content/PHALP/PHALP.py”, line 29, in __init__
self.cached_download_from_drive()
File “/content/PHALP/PHALP.py”, line 342, in cached_download_from_drive
output = gdown.cached_download(url, “_DATA/” + file_name, fuzzy=True)
File “/usr/local/lib/python3.9/dist-packages/gdown/cached_download.py”, line 117, in cached_download
shutil.move(temp_path, path)
File “/usr/lib/python3.9/shutil.py”, line 845, in move
copy_function(src, real_dst)
File “/usr/lib/python3.9/shutil.py”, line 444, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File “/usr/lib/python3.9/shutil.py”, line 264, in copyfile
with open(src, ‘rb’) as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: ‘/root/.cache/gdown/tmpy7fwlnhj/dl’
preparation for sound…
out/Videos_v1/PHALP_youtube_data_mask.mp4: No such file or directory
—————————————————————————
FileNotFoundError Traceback (most recent call last)
in
20 # 動画の再生
21 #clear_output()
—> 22 display_mp4(‘output.mp4′)
Colabでテストしてみたのですが、ライブラリの読み込みが極端に遅く、インストールがなかなか完了しません。
例えば、”! pip install scikit-learn==0.22″の行で6分かかりました。
Colabの仕様変更(Python3.9)による一時的な影響でしょうか。
また、次のセルでもエラーを吐き、完了しません。
https://github.com/brjathu/PHALP/tree/v1.1
ファイルがダウンロードできないことが主な要因かと存じますが、本家がv1.1を公開していることにも起因しますか。
参考
以下がclear outputをコメントアウトして表示されたエラーメッセージです。
Downloading file: hmar_v2_weights.pth
Cached Downloading: _DATA/hmar_v2_weights.pth
Access denied with the following error:
Cannot retrieve the public link of the file. You may need to change
the permission to ‘Anyone with the link’, or have had many accesses.
You may still be able to access the file from the browser:
https://drive.google.com/uc?id=1_wZcPv8MxPoZyEGA9rI5ayXiB7Fhhj4b
Traceback (most recent call last):
File “/usr/lib/python3.9/shutil.py”, line 825, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: ‘/root/.cache/gdown/tmpy7fwlnhj/dl’ -> ‘_DATA/hmar_v2_weights.pth’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/content/PHALP/demo_online.py”, line 195, in
phalp_tracker = PHALP_tracker(opt)
File “/content/PHALP/PHALP.py”, line 29, in __init__
self.cached_download_from_drive()
File “/content/PHALP/PHALP.py”, line 342, in cached_download_from_drive
output = gdown.cached_download(url, “_DATA/” + file_name, fuzzy=True)
File “/usr/local/lib/python3.9/dist-packages/gdown/cached_download.py”, line 117, in cached_download
shutil.move(temp_path, path)
File “/usr/lib/python3.9/shutil.py”, line 845, in move
copy_function(src, real_dst)
File “/usr/lib/python3.9/shutil.py”, line 444, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File “/usr/lib/python3.9/shutil.py”, line 264, in copyfile
with open(src, ‘rb’) as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: ‘/root/.cache/gdown/tmpy7fwlnhj/dl’
preparation for sound…
out/Videos_v1/PHALP_youtube_data_mask.mp4: No such file or directory
—————————————————————————
FileNotFoundError Traceback (most recent call last)
in
20 # 動画の再生
21 #clear_output()
—> 22 display_mp4(‘output.mp4′)
/content/PHALP/function.py in display_mp4(path)
51 def display_mp4(path):
52 from base64 import b64encode
—> 53 mp4 = open(path,’rb’).read()
54 data_url = “data:video/mp4;base64,” + b64encode(mp4).decode()
55 display(HTML(“””
FileNotFoundError: [Errno 2] No such file or directory: ‘output.mp4’