-
Notifications
You must be signed in to change notification settings - Fork 39
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
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' #41
Comments
Hi Sharan,
Thanks. Your model_id is not defined. Check the configuration for this
parameter.
Bohumir
Dne 5. 3. 2018 18:00 napsal uživatel "Sharan Duggirala" <
[email protected]>:
… I am currently trying to run the program with Python3 on my Mac OSX. But
as I run it with the .sh script, I do not seem to be getting any output.
In order to investigate more, I used a simple:
python3 predict.py sample.flac
This gave me the set of errors below:
/usr/local/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
Traceback (most recent call last):
File "predict.py", line 131, in <module>
model = InstrumentClassifier(args.model_dir)
File "predict.py", line 47, in __init__
self.model = load_model_from_dir(model_dir)
File "predict.py", line 44, in load_model_from_dir
model_dir + '/model_arch.yaml',
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Could you please guide me as to the proper procedure to fix this error?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#41>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAbOrGSzMjBnIc4PInKFvkONazFyn4jXks5tbW8SgaJpZM4Sco4p>
.
|
Are you supposed to create a model? In that case, which function should I invoke? |
I think you can use a pretrained model at https://github.com/bzamecnik/deep-instrument-heroku/tree/master/static/model/2016-10-15_22-11-47_31fdbcbb. Or you train train yours. I hope the README is covering that well. |
Aah, I see the problem.
|
Let me try running this. The README was a bit confusing, therefore, I went straight for the Could you detail how to train the model with your own data (I wanted to do this with the available files, but I keep facing various errors). Are only |
Hey, so I tried running this, and I got:
|
Also, I wanted a few things cleared up. Should the entire process() follow this: extract_features.py -> prepare_training_data.py -> train.py -> predict.py I understand the inputs to |
I am currently trying to run the program with
Python3
on my Mac OSX. But as I run it with the.sh
script, I do not seem to be getting any output. In order to investigate more, I used a simple:python3 predict.py sample.flac
This gave me the set of errors below:
Could you please guide me as to the proper procedure to fix this error?
The text was updated successfully, but these errors were encountered: