Code Monkey home page Code Monkey logo

Comments (5)

iwangjian avatar iwangjian commented on May 23, 2024

Hi, this might be attributed to the version update of pytorch-ignite, please use pytorch-ignite==0.2.1 as listed in requirements.txt. Thanks.

from color4dial.

kremHabashy avatar kremHabashy commented on May 23, 2024

When I use that version of ignite I get

/usr/local/lib/python3.10/dist-packages/transformers/models/bart/modeling_bart.py:549: FutureWarning: The class `PretrainedBartModel` has been depreciated, please use `BartPreTrainedModel` instead.
  warnings.warn(
Traceback (most recent call last):
  File "/content/Color4Dial/main_dialog.py", line 22, in <module>
    from train.trainer_dialog import IgniteTrainer
  File "/content/Color4Dial/train/trainer_dialog.py", line 9, in <module>
    from ignite.engine import Engine, Events
  File "/usr/local/lib/python3.10/dist-packages/ignite/__init__.py", line 1, in <module>
    import ignite.engine
  File "/usr/local/lib/python3.10/dist-packages/ignite/engine/__init__.py", line 3, in <module>
    from ignite.engine.engine import Engine, State, Events
  File "/usr/local/lib/python3.10/dist-packages/ignite/engine/engine.py", line 9, in <module>
    from ignite._utils import _to_hours_mins_secs
  File "/usr/local/lib/python3.10/dist-packages/ignite/_utils.py", line 3, in <module>
    from ignite.utils import convert_tensor, apply_to_tensor, apply_to_type, to_onehot
  File "/usr/local/lib/python3.10/dist-packages/ignite/utils.py", line 4, in <module>
    from torch._six import string_classes
ModuleNotFoundError: No module named 'torch._six'

If I upgrade ignite, I get the same error as lsyysl9711

from color4dial.

iwangjian avatar iwangjian commented on May 23, 2024

Hi, this might be because your Pytorch version >=2.0. Please downgrade the version of Pytorch to >=1.10 but < 2.0.

from color4dial.

kremHabashy avatar kremHabashy commented on May 23, 2024

I have torch-1.12.0

from color4dial.

kremHabashy avatar kremHabashy commented on May 23, 2024

Resolved by using python 3.8.

from color4dial.

Related Issues (3)

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.