GithubHelp home page GithubHelp logo

Comments (2)

akanimax avatar akanimax commented on May 28, 2024

@msmacpherson,
Sorry, you are right. Currently, there is no way for changing the number of channels of the output generated images. In case of MNIST, I did the same things (replicating the channels thrice). You could either do this (works pretty well), or change a little bit of code to include single channel images as well. Please feel free to open a PR here if you do implement it.

In my case, I was going to do it, but procrastination got in the way ... you know 😆. Besides, colour images are more fun you know 😄.

Glad that this repo is helpful for you.

Cheers 🍻!
@akanimax

from pro_gan_pytorch.

msmacpherson avatar msmacpherson commented on May 28, 2024

Thanks a lot! I'm spending my whole life trying to make tensors match up at the moment. If you don't mind I also found an error when i run the ProGan (unconditional mode) with cifar10 (I just removed classes from the command line to run using your code otherwise):

pro_gan = pg.ProGAN(depth=depth,
latent_size=latent_size, device=device)

Which gives me this error:

Files already downloaded and verified
Starting the training process ...

Currently working on Depth: 0
Current resolution: 4 x 4

Epoch: 1
Traceback (most recent call last):

File "", line 62, in
batch_sizes=batch_sizes

File "/home/matt/MSC/Progan/pro_gan_pytorch/PRO_GAN.py", line 607, in train
images = batch.to(self.device)

AttributeError: 'list' object has no attribute 'to'

Is there an additional preprocessing required for unconditional training please? For my project I'm looking at single class x-ray images initially so I only have a single image class.

from pro_gan_pytorch.

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.