jonathanking / sidechainnet

An all-atom protein structure dataset for machine learning.
BSD 3-Clause "New" or "Revised" License
330 stars 38 forks source link

scn.load() error #36

Open liuxm117 opened 3 years ago

liuxm117 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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).