ptran1203 / pytorch-animeGAN

Pytorch implementation of AnimeGAN for fast photo animation
161 stars 39 forks source link

What is the exact input shape of model? #14

Closed NicolasLaube closed 9 months ago

NicolasLaube commented 2 years ago

I integrated/adapted your code to my pipeline. However, when I train the model, I get some strange results. I think that it comes from the input matrices of cartoons (edged/gray/normal)... image

What are the expected cartoon and picture input shapes/order of channels ?

ptran1203 commented 2 years ago
NicolasLaube commented 2 years ago

Thank you for your quick response ! We are training the model on a custom cartoons dataset (more Pixar like images).

NicolasLaube commented 2 years ago

I still have a last question, is the shape (3, im_size_height, im_size_width) ?

ptran1203 commented 2 years ago

I still have a last question, is the shape (3, im_size_height, im_size_width) ?

Yes, in PyTorch channel first order is default

If you train on custom data, it's hard to say but you may need to tune some params (e.g loss weight, ...)

NicolasLaube commented 2 years ago

Ok, thank you !