Code Monkey home page Code Monkey logo

Comments (14)

ShenYujun avatar ShenYujun commented on June 7, 2024

You can definitely train on your own data. For this purpose, please prepare the data (we recommend using zip format) as well as a configuration file, like this. You can customize your own hyper-parameters based on the dataset (such as image resolution, number of training samples, etc.).

from genforce.

mer93 avatar mer93 commented on June 7, 2024

Thanks It worked

from genforce.

mer93 avatar mer93 commented on June 7, 2024

from genforce.

ShenYujun avatar ShenYujun commented on June 7, 2024

Yes to both of these questions.

from genforce.

mer93 avatar mer93 commented on June 7, 2024

from genforce.

ShenYujun avatar ShenYujun commented on June 7, 2024

Add a setting in your configuration file. Add image_channels=1 in modules/generator/model and modules/discriminator/model. Please refer to this line. You may also need to change this line to check the image shape. If images.shape[1] == 1, repeat it for 3 times since inception model only accepts 3-channel image.

from genforce.

mer93 avatar mer93 commented on June 7, 2024

Could you elaborate more the changes made in inception model. As it is giving error in my case.

from genforce.

ShenYujun avatar ShenYujun commented on June 7, 2024

Something like

if images.shape[1] == 1:
    images = torch.tile(images, (1, 3, 1, 1))

from genforce.

mer93 avatar mer93 commented on June 7, 2024

After making changes in the metrics/fid.py file, It gives following error
ValueError: The input tensor should be with shape [batch_size, channel, height, width], where channel equals to 1, height, width equal to 64!
But torch.Size([32, 3, 64, 64]) is received!

from genforce.

ShenYujun avatar ShenYujun commented on June 7, 2024

How about setting colorful_images = torch.tile(images, (1, 3, 1, 1))

from genforce.

mer93 avatar mer93 commented on June 7, 2024

Screenshot (153)
Still facing same valueerror issue

from genforce.

ShenYujun avatar ShenYujun commented on June 7, 2024

Change Line 33 to colourful_images?

from genforce.

mer93 avatar mer93 commented on June 7, 2024
features = inception_model(colorful_images, output_logits=False)

like this?

from genforce.

mer93 avatar mer93 commented on June 7, 2024

Change Line 33 to colourful_images?

It did not work for my gray scale dataset. Could you elaborate more.

from genforce.

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.