Seokju-Cho / Volumetric-Aggregation-Transformer

Official Implementation of VAT
MIT License
153 stars 14 forks source link

Minor Issues Downloading Some Datasets in VAT from Google Drive #7

Closed Brahmagupta closed 1 year ago

Brahmagupta commented 1 year ago

This is just a minor issue, but I still want to bring it up.

When calling downlaod_from_google() method from ./data/download.py, the requests.Session().get(url, .......) method probably no longer returns any cookies (all I got is just an empty list) for PF-PASCAL and SPair-71k datasets, so no file is downloaded.

I checked the actual absolute url = https://docs.google.com/uc?export=download&id='file-id from download.py'. It gives a warning page saying that the file is too big that google cannot perform virus scan, and it asks you to confirm if you still want to download the file.

Seems like we still need to find another way to bypass the Google Drive Virus Scanning.

PS: there's a workaround though: just manually download the datasets into ../Datasets_CATs/. (Datasets_CATs/ needs to be in the parent folder of Volumetric-Aggregation-Transformer)

SunghwanHong commented 1 year ago

Hi, this might help you:

https://github.com/juhongm999/chm/issues/5

Brahmagupta commented 1 year ago

Hi, this might help you:

juhongm999/chm#5

Thank you! ye adding 'confirm':'t' to the params argument in requests.Session().get() method in the download.py file did work

Changing from

response = session.get(url, params={'id': token_id}, stream=True)

to

response = session.get(url, params={'id': token_id, 'confirm':'t'}, stream=True)