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

scn.load() error #36

Open
liuxm117 opened this issue Aug 10, 2021 · 3 comments
Open

scn.load() error #36

liuxm117 opened this issue Aug 10, 2021 · 3 comments

Comments

@liuxm117
Copy link

when I run python train_pre.py, it get error at scn.load(), can not get the pkl file,how can I get the pkl file before I run the program

@jonathanking
Copy link
Owner

Can you show me the code you are running?

scn.load(12, 100) will download the most recent and most complete dataset as a .pkl file to ./sidechainnet_data. Hope that helps!

@liuxm117
Copy link
Author

Can you show me the code you are running?

scn.load(12, 100) will download the most recent and most complete dataset as a .pkl file to ./sidechainnet_data. Hope that helps!

SidechainNet(12, 100) was not found in ./sidechainnet_data.
Downloading from https://pitt.box.com/shared/static/ey5xh6l4p8iwzrxtxwpxt7oeg70eayl4.pkl
^CTraceback (most recent call last):
File "train_pre.py", line 37, in
data = scn.load(
File "/opt/conda/lib/python3.8/site-packages/sidechainnet/utils/load.py", line 261, in load
local_path = _download_sidechainnet(casp_version, thinning, scn_dir)
File "/opt/conda/lib/python3.8/site-packages/sidechainnet/utils/load.py", line 76, in _download_sidechainnet
_download(BOXURLS[format_sidechainnet_path(casp_version, thinning)], outfile_path)
File "/opt/conda/lib/python3.8/site-packages/sidechainnet/utils/load.py", line 50, in _download
r = requests.get(url, stream=True)
maybe My internet does not have permission,how can i download the pkl file before i run train_pre.py

@jonathanking
Copy link
Owner

jonathanking commented Aug 12, 2021

Hi, is there more to the error message? Unfortunately, I can't quite see what the error is from what you have shared with me.

You are also welcome to use the Pitt.box link directly to download the pickle file and save it locally (for example save it in ./sidechainnet_data).

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

No branches or pull requests

2 participants