Coder Social home page Coder Social logo

Comments (4)

ameetgohil avatar ameetgohil commented on June 12, 2024 2

Modifying pytorch and torchvision pip install commands to use torch 1.8.1 and torchvision 0.9.0 works. It will print an error complaining about torchtext dependency but the notebook will run just fine.
Use:

print('Installing PyTorch and Torchvision...')
! pip install pip install torch==1.8.0 torchvision==0.9.01>/dev/null

from once-for-all.

rappysaha avatar rappysaha commented on June 12, 2024

Same here. I installed torch version: 1.8. But still have the same error.

from once-for-all.

rappysaha avatar rappysaha commented on June 12, 2024

it works at Colab but print following error as you said.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. torchtext 0.10.0 requires torch==1.9.0, but you have torch 1.8.0 which is incompatible.

I was trying to run the tutorial in my pc and it works finally with torch 1.8.0 after restarting my VS-code workspace.
image

Thanks for the suggestion.

from once-for-all.

Lyken17 avatar Lyken17 commented on June 12, 2024

Thanks for pointing out it. This is brought API breaking changes from PyTorch. Commit 4f6fce3 should fix the issue.

from once-for-all.

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.