gaozhihan / gaozhihan/PreDiff

Unable to download pretrained weights

Open
#20 8 comments 0 reactions 1 assignee Claimed by @gaozhihan View on GitHub
bug
Dominant language
Python
Stars
159
Forks
10
PR merge metrics
No merged PRs in 30d

Description

When running the following to download the pretrained weights:

```
cd ROOT_DIR/PreDiff
python ./scripts/download_pretrained.py --model all
```

There are two errors.
1. `sed: -e expression #1, char 31: unterminated `s' command`
2. The files are 2.4k and contain an Google Drive - Virus scan warning.

Example stdout:

```
python ./scripts/download_pretrained.py --model all
sed: -e expression #1, char 31: unterminated `s' command
--2024-03-01 20:41:16-- https://docs.google.com/uc?export=download&confirm=&id=10OicEQuOPzSKDp5WYF3zDHsL-COywe98
Resolving docs.google.com (docs.google.com)... 142.251.33.110, 2607:f8b0:400a:80a::200e
Connecting to docs.google.com (docs.google.com)|142.251.33.110|:443... connected.
HTTP request sent, awaiting response... 303 See Other
Location: https://drive.usercontent.google.com/download?id=10OicEQuOPzSKDp5WYF3zDHsL-COywe98&export=download [following]
--2024-03-01 20:41:16-- https://drive.usercontent.google.com/download?id=10OicEQuOPzSKDp5WYF3zDHsL-COywe98&export=download
Resolving drive.usercontent.google.com (drive.usercontent.google.com)... 142.251.215.225, 2607:f8b0:400a:80b::2001
Connecting to drive.usercontent.google.com (drive.usercontent.google.com)|142.251.215.225|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2444 (2.4K) [text/html]
Saving to: ‘/fsx/PreDiff/pretrained/vae/pretrained_sevirlr_vae_8x8x64_v1.pt’

/fsx/PreDiff/pretrained/vae/pre 100%[=============================================================================>] 2.39K --.-KB/s in 0.001s

2024-03-01 20:41:16 (2.55 MB/s) - ‘/fsx/PreDiff/pretrained/vae/pretrained_sevirlr_vae_8x8x64_v1.pt’ saved [2444/2444]
```

When looking at `pretrained_sevirlr_vae_8x8x64_v1.pt` we see:

```
Google Drive - Virus scan warning.goog-link-button{position:relative;color:#15c;text-decoration:underline;cursor:pointer}.goog-link-button-disabled{color:#ccc;text-decoration:none;cursor:default}body{color:#222;font:normal 13px/1.4 arial,sans-serif;margin:0}.grecaptcha-badge{visibility:hidden}.uc-main{padding-top:50px;text-align:center}#uc-dl-icon{display:inline-block;margin-top:16px;padding-right:1em;vertical-align:top}#uc-text{display:inline-block;max-width:68ex;text-align:left}.uc-error-caption,.uc-warning-caption{color:#222;font-size:16px}#uc-download-link{text-decoration:none}.uc-name-size a{color:#15c;text-decoration:none}.uc-name-size a:visited{color:#61c;text-decoration:none}.uc-name-size a:active{color:#d14836;text-decoration:none}.uc-footer{color:#777;font-size:11px;padding-bottom:5ex;padding-top:5ex;text-align:center}.uc-footer a{color:#15c}.uc-footer a:visited{color:#61c}.uc-footer a:active{color:#d14836}.uc-footer-divider{color:#ccc;width:100%}.goog-inline-block{position:relative;display:-moz-inline-box;display:inline-block}* html .goog-inline-block{display:inline}*:first-child+html .goog-inline-block{display:inline}sentinel{}

Google Drive can't scan this file for viruses.

pretrained_sevirlr_vae_8x8x64.pt (322M) is too large for Google to scan for viruses. Would you still like to download this file?


```

This also means the next step of course does not work:
```
cd ROOT_DIR/PreDiff
MASTER_ADDR=localhost MASTER_PORT=10001 python ./scripts/prediff/sevirlr/train_sevirlr_prediff.py --gpus 2 --pretrained --save tmp_sevirlr_prediff
```

Is there any chance you can store the data in S3?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.