Comments (14)
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.
Thanks It worked
from genforce.
from genforce.
Yes to both of these questions.
from genforce.
from genforce.
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.
Could you elaborate more the changes made in inception model. As it is giving error in my case.
from genforce.
Something like
if images.shape[1] == 1:
images = torch.tile(images, (1, 3, 1, 1))
from genforce.
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.
How about setting colorful_images = torch.tile(images, (1, 3, 1, 1))
from genforce.
Still facing same valueerror issue
from genforce.
Change Line 33 to colourful_images
?
from genforce.
features = inception_model(colorful_images, output_logits=False)
like this?
from genforce.
Change Line 33 to
colourful_images
?
It did not work for my gray scale dataset. Could you elaborate more.
from genforce.
Related Issues (20)
- Summaries in tensorboard (Image/Audio) HOT 1
- Will you provide the pretrained model of PGGAN on the FFHQ or CelebA-HQ dataset? HOT 5
- GPUs training error: Logger `logger` has already existed! HOT 9
- Memory Error HOT 5
- AttributeError: 'SynthesisModule' object has no attribute 'lod' HOT 9
- Training on my own data
- Training closes silently
- Randomize noise HOT 1
- about activation_scale HOT 1
- dataloader error HOT 1
- Compatibility with RTX 3060 HOT 1
- The encoder HOT 1
- How do I train using StyleGAN2? HOT 1
- Get style code (Y-space)
- StyleGAN3 support
- Resolution assert in progressive_resize_image HOT 1
- Convert class conditional models(stylegan2-ada pytorch) to genforce format? HOT 2
- Using my own dataset to retrain HOT 1
- Sudden increase in memory usage during training
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 genforce.