VIBE icon indicating copy to clipboard operation
VIBE copied to clipboard

[BUG] Colab failed to access data

Open snitchjinx opened this issue 2 years ago • 7 comments

Hello! I'm executing the project in Google Colab. However, the data failed to download at: !source scripts/prepare_data.sh

Below is the error message:

# Download pretrained weights and SMPL data
!source scripts/prepare_data.sh
Traceback (most recent call last):
  File "/usr/local/bin/gdown", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/gdown/cli.py", line 61, in main
    quiet=args.quiet,
  File "/usr/local/lib/python3.7/dist-packages/gdown/download.py", line 52, in download
    res = sess.get(url, stream=True)
  File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 543, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 516, in request
    prep = self.prepare_request(req)
  File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 459, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 314, in prepare
    self.prepare_url(url, params)
  File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 388, in prepare_url
    raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '': No schema supplied. Perhaps you meant [http://](http:)?
unzip:  cannot find or open vibe_data.zip, vibe_data.zip.zip or vibe_data.zip.ZIP.
rm: cannot remove 'vibe_data.zip': No such file or directory
mv: cannot stat 'data/vibe_data/sample_video.mp4': No such file or directory
mv: cannot stat 'data/vibe_data/yolov3.weights': No such file or directory```

snitchjinx avatar Mar 09 '22 11:03 snitchjinx

same error

ksh7621 avatar Mar 12 '22 15:03 ksh7621

this seems to be a gdown issue i had to manually download the zip and then remove the gdown link from prepare_data.sh

aarunjith avatar Mar 18 '22 04:03 aarunjith

That's a good solution, but for Colab uploading zip is too consuming.

snitchjinx avatar Mar 18 '22 05:03 snitchjinx

you may please upgrade the gdown version to 4.4.0 in the requirements.txt file.

jkcg-learning avatar Mar 30 '22 09:03 jkcg-learning

You can alternatively use Pydrive to download the file manually

eliohead avatar Apr 30 '22 20:04 eliohead

Hi, I've come across the exact same issue and I have found the solution.

Replace the gdown command in scripts/prepare_data.sh with this:

gdown "https://drive.google.com/uc?id=1untXhYOLQtpNEy4GTY_0fL_H-k6cTf_r&export=download&confirm=t"

The &export=download&confirm=t part is used to accept the download of the large file.

Have a nice day :)

EmileDqy avatar Jun 02 '22 15:06 EmileDqy

Hi, I've come across the exact same issue and I have found the solution.

Replace the gdown command in scripts/prepare_data.sh with this:

gdown "https://drive.google.com/uc?id=1untXhYOLQtpNEy4GTY_0fL_H-k6cTf_r&export=download&confirm=t"

The &export=download&confirm=t part is used to accept the download of the large file.

Have a nice day :)

Perfectly solve this problem. Thankxxx

yinkangning0124 avatar Mar 01 '23 02:03 yinkangning0124