Giter Site home page Giter Site logo

Comments (6)

ManuelAlvarezC avatar ManuelAlvarezC commented on May 30, 2024

Hi @soft-nougat, and thanks for your interest!!

It seems like you might be using the old version of TGAN?
From the latest version on, TGAN can be used directly from Python.
Please check the quickstart from the documentation, as it will probably clarify most of your doubts: https://dai-lab.github.io/TGAN/readme.html#quickstart

from tgan.

soft-nougat avatar soft-nougat commented on May 30, 2024

Hey Manuel!

Thanks for the reply. I should be using the latest version as I installed the tgan package.

Also, I am following the quickstart, but there are no instructions on how to lower the epochs in the fit model step. As mentioned, I changed the number of epochs in the config json file but it didn't work.

Thanks!
Tia

from tgan.

ManuelAlvarezC avatar ManuelAlvarezC commented on May 30, 2024

HI @soft-nougat,

Also, I am following the quickstart, but there are no instructions on how to lower the epochs in the fit model step.

You have to set them when creating the TGANModel instance, you can have a full reference of the constructor arguments here

As mentioned, I changed the number of epochs in the config json file but it didn't work.

That's what confused me, as the config.json is used only with the CLI to run the random hyperparameter search. Since you are using the Python API, you can ignore it and set the number of epochs as specified on the link I shared above

from tgan.

Baukebrenninkmeijer avatar Baukebrenninkmeijer commented on May 30, 2024

You have to set them when creating the TGANModel instance, you can have a full reference of the constructor arguments here

I think it might be better to move the epochs/batch_size and other training related parameters to the .fit() call. This both aligns it better with the .fit() of other APIs like keras and fastai and it feels a bit weird when you're loading a model from disk, and still need to specify the epochs and other training related parameters.

from tgan.

ManuelAlvarezC avatar ManuelAlvarezC commented on May 30, 2024

Hi @Baukebrenninkmeijer,

I think it might be better to move the epochs/batch_size and other training related parameters to the .fit() call. This both aligns it better with the .fit() of other APIs like keras and fastai and it feels a bit weird when you're loading a model from disk, and still need to specify the epochs and other training related parameters.

This make quite sense, could you please open a new issue so we can continue this discussion there?

@soft-nougat, did you manage to solve your issue? Please give me a thumbs up so I can close this issue. Thanks

from tgan.

soft-nougat avatar soft-nougat commented on May 30, 2024

Thanks Manuel and Bauke!

Very helpful, I will close the issue. :)

Tia

from tgan.

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.