Giter Site home page Giter Site logo

Libraries import missing, unable to load image for inference and not able to load pipeline with the trained model about transformers HOT 4 OPEN

dejokz avatar dejokz commented on June 16, 2024
Libraries import missing, unable to load image for inference and not able to load pipeline with the trained model

from transformers.

Comments (4)

dejokz avatar dejokz commented on June 16, 2024

https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/en/pytorch/semantic_segmentation.ipynb

from transformers.

amyeroberts avatar amyeroberts commented on June 16, 2024

Hi @dejokz, thanks for raising an issue!

Could you give some more details about the errors you're experiencing? Specifically the error messages and their full traceback?

from transformers.

RUFFY-369 avatar RUFFY-369 commented on June 16, 2024

Hi @dejokz, I checked the provided colab notebook and I got the same error and I think that even after running the suggested install of pip install transformers[torch] and pip install accelerate -U in the error traceback you aren't able to resolve the issue, right?

So, for fixing that just restart the colab session and after that without rerunning the !pip install code cells just run all the rest of the other code cells back 'cause Colab has a script that appends metadata of pip-installed packages to a list-like object during runtime and imports only the search function from the top of this list so, we need to restart the session after !pip install

Cheers!

from transformers.

stevhliu avatar stevhliu commented on June 16, 2024

Hi, I recommend copying/pasting the code from the docs on the main version for now. I think these issues should've been resolved in #30132, but the doc-builder is not converting the latest changes to the notebooks for some reason.

from transformers.

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.