Giter Site home page Giter Site logo

Comments (6)

abelriboulot avatar abelriboulot commented on May 29, 2024 1

Glad it works! I think I'll patch it up to automatically delete model_data if corrupted!

from onnxt5.

abelriboulot avatar abelriboulot commented on May 29, 2024

Hey @vladislavkoz ! Thanks for raising this.
So I have a guess as to what that might be. To start the sessions, onnxt5 first downloads and unpacks the models. If this process is incorrectly made this throws a protobuf error.
To check if it's that you can do the following:
First get the location of the package, you can simply run:
import onnxt5 print(onnxt5.__file__)
For me this gives /Users/abelriboulot/anaconda3/lib/python3.6/site-packages/onnxt5/init.py
Go to the onnxt5 package folder (in my case /Users/abelriboulot/anaconda3/lib/python3.6/site-packages/onnxt5) and cd into the model_data directory. Could you screenshot me what you see?

Then you can simply rm * and try your code again. You should see a loading bar when the models are being downloaded.

Let me know if that fixes it. If it does I might push a patch to automatically clean the model_data dir if the user has any issue.

from onnxt5.

vladislavkoz avatar vladislavkoz commented on May 29, 2024

image
image
After removing all from onnxt5 folder
image

Then I've removed onnxt5 using pip from my env and install it again.
During the next run, I saw a progress bar and it works well now.

Here is the onnxt5 folder after reinstallation/and the first run.
image

from onnxt5.

vladislavkoz avatar vladislavkoz commented on May 29, 2024

It works now. Thanks. Do you need some additional info?

from onnxt5.

vladislavkoz avatar vladislavkoz commented on May 29, 2024

Thanks for your fast help again.

from onnxt5.

abelriboulot avatar abelriboulot commented on May 29, 2024

@vladislavkoz I pushed 0.1.5 that should take care of this issue for future users!

from onnxt5.

Related Issues (16)

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.