Code Monkey home page Code Monkey logo

Comments (6)

lkhphuc avatar lkhphuc commented on May 3, 2024 1

Ok I updated my model template according to the latest version. Turned out there are some breaking changes in the init and dataloader too.
It's OK now. Thank for your help.

from lightning.

williamFalcon avatar williamFalcon commented on May 3, 2024

can you put the code for your model here? and also the loading portion

from lightning.

williamFalcon avatar williamFalcon commented on May 3, 2024

make sure you’re also running the latest version.

hparams for instance no longer needs to be added to rhe superclass init.

look at the example on the core readme

from lightning.

williamFalcon avatar williamFalcon commented on May 3, 2024

This test specifically tests to make sure models can be saved and loaded.

My hunch is that hparams in your model is causing an issue (doesn't conform with what's expected).

from lightning.

lkhphuc avatar lkhphuc commented on May 3, 2024

Thank, I will take a look. Does the fact that my model was saved on previous version and I'm trying to load it on this version, break the compatability?

from lightning.

calclavia avatar calclavia commented on May 3, 2024

I got stuck on this issue as well and I'm getting a similar error when trying to load_from_metrics:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/conda/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/workspace/bernard/asr/test.py", line 12, in <module>
    tags_csv=tags_csv
  File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/root_module/root_module.py", line 154, in load_from_metrics
    model = cls(hparams)
  File "/workspace/bernard/asr/system.py", line 14, in __init__
    super().__init__(*args, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/root_module/root_module.py", line 14, in __init__
    super(LightningModule, self).__init__(*args, **kwargs)
TypeError: __init__() takes 1 positional argument but 2 were given

from lightning.

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.