facebookresearch / InterHand2.6M

Official PyTorch implementation of "InterHand2.6M: A Dataset and Baseline for 3D Interacting Hand Pose Estimation from a Single RGB Image", ECCV 2020
Other
687 stars 91 forks source link

download/verify scripts not working for 5fps image download #55

Closed pablovela5620 closed 3 years ago

pablovela5620 commented 3 years ago

Had to modify both to work in case this helps someone else

download 5fps

import os
url = 'https://fb-baas-f32eacb9-8abb-11eb-b2b8-4857dd089e15.s3.amazonaws.com/InterHand2.6M/InterHand2.6M.images.5.fps.v1.0/'
for part1 in ('a', 'b'):
    for part2 in ('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'):
        if part1 == 'b' and part2 == 's': break
        tar_file = f'InterHand2.6M.images.5.fps.v1.0.tar.part{part1}{part2}'
        # check if tarfile is already downloaded, if not download
        if not os.path.exists(tar_file): os.system(f'wget {url}{tar_file}')

os.system(f'wget {url}InterHand2.6M.images.5.fps.v1.0.tar.CHECKSUM')
os.system(f'wget {url}unzip.sh')
os.system(f'wget {url}verify_download.py')

only had to change a single line on the verify_download.py

for line in tqdm(checksums):
    md5sum, filename = line.split()
    _, filename = filename.split('/')

this is because the MD5 file has an extra InterHand2.6M_5fps_batch1_splits/ in it

mks0601 commented 3 years ago

Thanks for reporting the errors. There were minor updates on the url on our side, but the script has not been updated yet :( I updated download_5fps and download_30fps scripts. Updating verify_download might take several days, but will update it soon.

mks0601 commented 3 years ago

All files are updated!