Code Monkey home page Code Monkey logo

Comments (5)

tejasvx avatar tejasvx commented on May 12, 2024 1

I actually have applied this saved models function to most of your GANs implementation. My request was to upload saved hdf5 file of your implementation as training models are computationally expensive and people who are interested in results can use those models. But anyways I have implemented these models and can upload my hdf5 files if you would allow me to.
P.S. your implementation helped me a lot in understanding GANs.

from keras-gan.

famishedrover avatar famishedrover commented on May 12, 2024

@tejasvx You can train the models in less then a couple of hours tops, create a Google Cloud Account which gives you free credits to work with.

from keras-gan.

tejasvx avatar tejasvx commented on May 12, 2024

GCP free credits does not contain GPU instances but I trained the model on my laptop and it worked great.
Feel like I should close this issue anyways.

from keras-gan.

eriklindernoren avatar eriklindernoren commented on May 12, 2024

Some GAN implementations have a method save_model. This is from acgan/acgan.py:

    def save_model(self):

        def save(model, model_name):
            model_path = "acgan/saved_model/%s.json" % model_name
            weights_path = "acgan/saved_model/%s_weights.hdf5" % model_name
            options = {"file_arch": model_path, 
                        "file_weight": weights_path}
            json_string = model.to_json()
            open(options['file_arch'], 'w').write(json_string)
            model.save_weights(options['file_weight'])

        save(self.generator, "mnist_acgan_generator")
        save(self.discriminator, "mnist_acgan_discriminator")
        save(self.combined, "mnist_acgan_adversarial")

I have not implemented this method for all GAN varieties, but slight modifications to this method should help you save the model you want to train.

from keras-gan.

BenjaminWegener avatar BenjaminWegener commented on May 12, 2024

#70

from keras-gan.

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.