jessieren / DeepVirFinder

Identifying viruses from metagenomic data by deep learning
Other
116 stars 32 forks source link

Stuck on loading models? #30

Closed Joshcole2504 closed 2 years ago

Joshcole2504 commented 2 years ago

Hello,

I am having a problem with my run getting stuck on the first section, loading the models.

I have downloaded the required dependancies and python is fully updated.

I input

python dvf.py -i ~/Documents/PairwiseANI/my_seqs.fna -l 1000 -c 2

It returns

Using Theano backend.
1. Loading Models.
   model directory /data2/joshcole/DeepVirFinder/models
Traceback (most recent call last):
  File "dvf.py", line 131, in <module>
    modDict[contigLengthk] = load_model(os.path.join(modDir, modName))
  File "/home/ggb_joshcole/miniconda3/envs/dvf/lib/python3.6/site-packages/keras/engine/saving.py", line 419, in load_model
    model = _deserialize_model(f, custom_objects, compile)
  File "/home/ggb_joshcole/miniconda3/envs/dvf/lib/python3.6/site-packages/keras/engine/saving.py", line 224, in _deserialize_model
    model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'

Any help with what I'm doing wrong would be greatly appreciated!

Joshcole2504 commented 2 years ago

Apologies - Found the fix within the issues.

Aciole-David commented 6 months ago

Apologies - Found the fix within the issues.

Hey @Joshcole2504, care to tell where did you find the fix? thanks!