Comments (2)
In my case I changed the cell above the "load_model(model_path)" cell to
model_path = '../models/n_seconds/siamese__nseconds_3.0__filters_32__embed_64__drop_0.05__r_0.hdf5'
and downloaded the model file from
https://github.com/oscarknagg/voicemap/tree/master/models/n_seconds
I save the downloaded file to "../models/n_seconds/" and I was able to run the model without a problem. If you haven't tried the above, please try it to see if it works for you.
Thanks,
Andrew
from voicemap.
In my case I changed the cell above the "load_model(model_path)" cell to
model_path = '../models/n_seconds/siamese__nseconds_3.0__filters_32__embed_64__drop_0.05__r_0.hdf5'
and downloaded the model file from
https://github.com/oscarknagg/voicemap/tree/master/models/n_secondsI save the downloaded file to "../models/n_seconds/" and I was able to run the model without a problem. If you haven't tried the above, please try it to see if it works for you.
Thanks,
Andrew
i did the same thing it is not working having following error "bad marshall" something
Please use
rateinstead of
keep_prob. Rate should be set to
rate = 1 - keep_prob`.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/keras/utils/generic_utils.py", line 231, in func_load
code = marshal.loads(raw_code)
ValueError: bad marshal data (unknown type code)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/mustafacelik/PycharmProjects/voicemap/mustafa.py", line 16, in
siamese = load_model(model_path)
File "/usr/local/lib/python3.7/site-packages/keras/engine/saving.py", line 260, in load_model
model = model_from_config(model_config, custom_objects=custom_objects)
File "/usr/local/lib/python3.7/site-packages/keras/engine/saving.py", line 334, in model_from_config
return deserialize(config, custom_objects=custom_objects)
File "/usr/local/lib/python3.7/site-packages/keras/layers/init.py", line 55, in deserialize
printable_module_name='layer')
File "/usr/local/lib/python3.7/site-packages/keras/utils/generic_utils.py", line 145, in deserialize_keras_object
list(custom_objects.items())))
File "/usr/local/lib/python3.7/site-packages/keras/engine/network.py", line 1017, in from_config
process_layer(layer_data)
File "/usr/local/lib/python3.7/site-packages/keras/engine/network.py", line 1003, in process_layer
custom_objects=custom_objects)
File "/usr/local/lib/python3.7/site-packages/keras/layers/init.py", line 55, in deserialize
printable_module_name='layer')
File "/usr/local/lib/python3.7/site-packages/keras/utils/generic_utils.py", line 145, in deserialize_keras_object
list(custom_objects.items())))
File "/usr/local/lib/python3.7/site-packages/keras/layers/core.py", line 730, in from_config
function = func_load(config['function'], globs=globs)
File "/usr/local/lib/python3.7/site-packages/keras/utils/generic_utils.py", line 235, in func_load
code = marshal.loads(raw_code)
ValueError: bad marshal data (unknown type code)`
from voicemap.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from voicemap.