Giter Site home page Giter Site logo

Comments (2)

csala avatar csala commented on May 29, 2024

@tirthajyoti you can find all the API documentation here: https://dai-lab.github.io/TGAN/api/tgan.model.html

In particular, the sample method is here: https://dai-lab.github.io/TGAN/api/tgan.model.html#tgan.model.TGANModel.sample

As you can see, there isn't much documentation about the sampling arguments because there is only one argument, which needs no documentation: the number of samples to generate.

Regarding the Google Colab and the memory consumption, we cannot tell you whether it is normal or not because we do not have any insight on your data. Also, we have never executed TGAN on Google Colab ourselves.

However, yes, TGAN is memory intensive, just like any other GAN or data synthesization tool, and yes, it's normal that the memory consumption increases during sampling, as you are generating and trying to allocate new data that didn't exist before you started sampling.

One option that you have, if you have limited resources and can fit but not sample, is to delete the data variables and collect garbage after fitting, before sampling, to make sure that you have enough space to allocate the new data as it is generated.

from tgan.

csala avatar csala commented on May 29, 2024

Hi @qwerkkk I think that you are hitting a different issue. Please have a look at the issue #41 that I just opened.

As you can see there, there is a problem that makes TGAN go into an infinite loop if the number of samples is lower than the batch_size, which defaults to 200.

So, in you case, the snippet of code that you pasted will never end. However, if you change SAMPLES to 200 or higher, the fit process will take a couple of minutes and then the sampling will be almost immediate.

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.