Git Product home page Git Product logo

Comments (6)

ShikharJ avatar ShikharJ commented on June 2, 2024

@mehreenjabeen I'm assuming your system has a GPU setup? Can you provide the sample command you ran and the full output?

from edgeml.

mehreenjabeen avatar mehreenjabeen commented on June 2, 2024

i ran this command: "python kws_demo.py --config_path <path_to_config.json> --model_path <path_to_model.pt> --mean_path <path_to_mean.npy> --std_path <path_to_std.npy>"
However, I had trained the model with architecture argument set as "-architecture FastGRNNCUDA". Now I am retraining with architecture parameter set to FastGRNN. Hope that resolves the issue

from edgeml.

mehreenjabeen avatar mehreenjabeen commented on June 2, 2024

the above thing didnt work(i.e chaging architecture from FastGRNNCUDA to FastGRNN )
So command i ran "python3 kws-demo.py --config_path /home/mehreen/Work/EdgeML/EdgeML/config.json --model_path /home/mehreen/Work/EdgeML/EdgeML/examples/pytorch/FastCells/KWS-training/model/FastGRNN128KeywordSpotter.pt --mean_path $MODEL_DIR/mean.npy --std_path $MODEL_DIR/std.npy"

Output:
sigmoid tanh
Traceback (most recent call last):
File "kws-demo.py", line 202, in
fastgrnn = create_model(config.model, num_filt, 35)
File "/home/mehreen/Work/EdgeML/EdgeML/examples/pytorch/FastCells/KWS-training/train_classifier.py", line 420, in create_model
model_config.update_nonlinearity, num_keywords)
File "/home/mehreen/.local/lib/python3.6/site-packages/edgeml_pytorch/trainer/fastmodel.py", line 59, in init
for l in range(self.num_layers)])
File "/home/mehreen/.local/lib/python3.6/site-packages/edgeml_pytorch/trainer/fastmodel.py", line 59, in
for l in range(self.num_layers)])
File "/home/mehreen/.local/lib/python3.6/site-packages/edgeml_pytorch/graph/rnn.py", line 1121, in init
raise Exception('FastGRNNCUDA is supported only on GPU devices.')
Exception: FastGRNNCUDA is supported only on GPU devices.

from edgeml.

ShikharJ avatar ShikharJ commented on June 2, 2024

@MJ10 Can you please take a look at this?

from edgeml.

ShikharJ avatar ShikharJ commented on June 2, 2024

@MJ10 Ping

from edgeml.

mehreenjabeen avatar mehreenjabeen commented on June 2, 2024

I am closing this issue as I got to know what the issue was. In config.json the model architecture was set to FastGRNNCuda because of which it was throwing the error. I changed it to Fastgrnn and it worked!

from edgeml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.