Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix weights file 404 problem: using gdrive instead of github lfs. #78

Closed
wants to merge 0 commits into from
Closed

Conversation

huan
Copy link

@huan huan commented Oct 1, 2019

Currently, the weights files can not be downloaded in the Notebook because of the over-quota of Github LFS service.

In order to fix this, I use a script from https://www.matthuisman.nz/2019/01/download-google-drive-files-wget-curl.html to download the weight files from Google Drive.

What I had changed is the following code block:

!wget -O gdrivedl 'https://f.mjh.nz/gdrivedl'
!chmod +x gdrivedl

# !wget https://media.githubusercontent.com/media/idealo/image-super-resolution/master/weights/sample_weights/rdn-C6-D20-G64-G064-x2/ArtefactCancelling/rdn-C6-D20-G64-G064-x2_ArtefactCancelling_epoch219.hdf5
!./gdrivedl https://drive.google.com/file/d/1_1GGoHF5oq3W_iVVxx1SRDIa_mjwoe26/view?usp=sharing
# !wget https://media.githubusercontent.com/media/idealo/image-super-resolution/master/weights/sample_weights/rdn-C6-D20-G64-G064-x2/PSNR-driven/rdn-C6-D20-G64-G064-x2_PSNR_epoch086.hdf5
!./gdrivedl https://drive.google.com/file/d/1ro0Rk4xAqo-OEDGgLIYz-F0BHvmUUT2E/view?usp=sharing
# !wget https://media.githubusercontent.com/media/idealo/image-super-resolution/master/weights/sample_weights/rdn-C3-D10-G64-G064-x2/PSNR-driven/rdn-C3-D10-G64-G064-x2_PSNR_epoch134.hdf5
!./gdrivedl https://drive.google.com/file/d/1Sn9FFKXNWOPXdNzy-zmyVYB4eNRnXTKD/view?usp=sharing
# !wget https://media.githubusercontent.com/media/idealo/image-super-resolution/master/weights/sample_weights/rrdn-C4-D3-G32-G032-T10-x4/Perceptual/rrdn-C4-D3-G32-G032-T10-x4_epoch299.hdf5
!./gdrivedl https://drive.google.com/file/d/1o3l_I60xHkdiWZG7UM0nZBblEontHs2W/view?usp=sharing

!mkdir weights
!mv *.hdf5 weights

Related to #46 #59 #64

@pull pull bot closed this Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants