Coder Social home page Coder Social logo

Comments (3)

universome avatar universome commented on May 31, 2024

Oh, I am sorry. I have updated the README.md file, and it now includes the proper command to run the code:

CUDA_VISIBLE_DEVICES=0 python src/run.py -c configs/inr-gan.yml --config.dataset lsun_256

from inr-gan.

danielkaifeng avatar danielkaifeng commented on May 31, 2024

hi, universome, but there is still no fast_inr_trainer in folder src/trainers, can you run the command locally? could you check where this file is?

Traceback (most recent call last):
  File "src/run.py", line 7, in <module>
    from src.trainers import GANTrainer, StaticINRsTrainer
  File "./src/trainers/__init__.py", line 1, in <module>
    from .fast_inr_trainer import FastINRTrainer
ModuleNotFoundError: No module named 'src.trainers.fast_inr_trainer'

from inr-gan.

danielkaifeng avatar danielkaifeng commented on May 31, 2024

I modify the code and use alternative trainer module, but the config file seems miss lots of params:

  File "./src/trainers/gan_trainer.py", line 51, in build_model
    return INRGAN(self.config)
  File "./src/models/inr_gan.py", line 29, in __init__
    self.generator = INRGenerator(config)
  File "./src/models/inr_gan.py", line 47, in __init__
    self.init_inr()
  File "./src/models/inr_gan.py", line 54, in init_inr
    self.inr = FourierINRs(self.config)
  File "./src/models/inrs/inrs.py", line 44, in __init__
    self.init_model()
  File "./src/models/inrs/inrs.py", line 227, in init_model
    if self.config.hp.inr.residual:
AttributeError: 'Config' object has no attribute 'residual'

from inr-gan.

Related Issues (18)

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.