Closed mainguyenanhvu closed 1 year ago
https://github.com/jivankandel/PUResNet/blob/main/whole_trained_model1.hdf, go to this link and click download, and move it into your working directory. Since this was uploaded with git lfs, git clone won't download the full file.
Thank you. Now, it returned a new error:
File "/home/ubuntu/.conda/envs/puresnet/lib/python3.6/site-packages/keras/engine/topology.py", line 3089, in load_weights_from_hdf5_group
original_keras_version = f.attrs['keras_version'].decode('utf8')
AttributeError: 'str' object has no attribute 'decode'
Please help me to solve it.
Besides, I think we should use sha to check .h5 file is correct or not.
It looks like the hdf5 version conflicts, maybe you have installed the latest version of it. I have uploaded environment.yml, you can use that to create conda environment.
Thank you a lot. It worked.
Please accept my pull request so that other people can use it easily.
I tried to run PUResNet with my pdb file. Instead of using conda to install package, I used pip:
I run
python predict.py -ftype pdb -m 0 -i ../../pdb_files/test.pdb -mpath whole_trained_model1.hdf -otype mol2 -o output -gpu 0
and faced the error:Could you please send me a new model file to run it? I guest the cause is like that link