Comments (2)
@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.
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)
- Runtime error related to tensor shapes when training ProGAN HOT 2
- If you don't mind, please let me know what environment you are using. HOT 1
- fan-in calculation in _equalized_deconv2d HOT 2
- Memory issues/requirements
- model training plateaus HOT 2
- module must have its parameters and buffers on device cuda:0 (device_ids[0]) but found one of them on device: cpu HOT 1
- no module name pro_gan_pytorch.PRO_GAN HOT 1
- square() not exist? HOT 4
- 256x256 pretrained model HOT 2
- Calculating fan_in for EqualizedConvTranspose2d HOT 2
- Missing LReLU activation after from_rgb conv layers HOT 4
- Output size HOT 6
- Training the model HOT 1
- Training the model
- handling grayscale image
- not "pip install pro-gan-path" but "pip install pro-gan-pth" HOT 1
- Can i use well trained progan generator do gan inversion? HOT 2
- Code profiling
- Could you help upgrade the vulnerble dependency in pro-gan-pth HOT 2
- pretained model HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pro_gan_pytorch.