Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretrained models #10

Closed
TylerCarberry opened this issue Apr 22, 2017 · 23 comments
Closed

Pretrained models #10

TylerCarberry opened this issue Apr 22, 2017 · 23 comments

Comments

@TylerCarberry
Copy link
Contributor

Do you have any CycleGAN pretrained models available that use pytorch?

@junyanz
Copy link
Owner

junyanz commented Apr 23, 2017

We are training some models now, and we will upload them soon.

@TylerCarberry
Copy link
Contributor Author

Any update on this?

@petergerten
Copy link

I would also be very interested? Anybody has a pretrained model?

@jingweiz
Copy link

Hey,
do you have any training curves? I tried your code and the results do not look too good ... would be great if you can provide the training curves for a comparison, thanks a lot!

@AndreJFBico
Copy link

AndreJFBico commented Sep 7, 2017

Any update?

@rednithin
Copy link

Where can I find a pre trained model for edges2shoes and edges2handbags?

@isaacmg
Copy link

isaacmg commented Sep 28, 2017

Anyone have the monet2photo pre-trained model?

@hugozanini
Copy link

Did someone train the network for segmentation?

@junyanz
Copy link
Owner

junyanz commented Dec 29, 2017

We have a few pre-trained models available. More are coming.
pix2pix: edges2shoes, sat2map, and facades_label2photo
CycleGAN: horse2zebra and zebra2horse

Please check out the download_scripts, instructions(pix2pix) and instructions(CyclceGAN) for more details.

@linkerzhang
Copy link

linkerzhang commented Jan 9, 2018

Hi @junyanz I'm trying to load the pretrained cyclegan (horse2zebra) model as below code template,

model = XXXModel()
model.load_state_dict(torch.load('latest_net_G.pth'))

dumb question please. which XXXModel should I use in your code base please? I'm assuming that it should be a child class of torch.nn.Module.

or could you save and share the whole model for reference please? :)

Thank you very much!

Forget about it. Figured out from the test_model.py. :)

@al3xsh
Copy link

al3xsh commented Mar 25, 2018

Hi,
I wondered if there was any progress on adding pretrainined models for photo 2 monet/cezanne/vangogh. I have trained cyclegan myself with the default parameters, but wasn't 100% happy with the results and would like to see the results of your models for comparison!
Regards,
Alex

@junyanz
Copy link
Owner

junyanz commented Apr 24, 2018

we don't have these models available. You can improve the results with additional identity loss.

@wnls
Copy link

wnls commented May 29, 2018

Hi,
Since there's no pretrained model for sat2map, I'm using default params to train sat2map by running
python train.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --no_dropout
as suggested in README.

The generated images don't seem to have the quality it should at epoch 100+. Here's a generated image at epoch 151. Am I missing something? Thank you!

(epoch151_fake_A.png, epoch151_fake_B.png)
epoch151_fake_a
epoch151_fake_b

@chandakQ
Copy link

Could you please add a pre-trained model for apple2orange.

Regards,
Mukesh Chandak

@junyanz
Copy link
Owner

junyanz commented Jul 3, 2018

We will add more models soon. @taesung89

@taesungp
Copy link
Collaborator

Added! Please use the script pretrained_models/download_cyclegan_model.sh to download the pretrained models.

@joeatton
Copy link

Do you have the pretrained pix2pix model available for colourisation

@junyanz
Copy link
Owner

junyanz commented Nov 19, 2018

We don't' have one for pix2pix. Maybe you can check out this repo.

@willhunger
Copy link

@wnls I caught the same problem, how did you slove it?

@DmitryUnanyants
Copy link

Hi @junyanz I'm trying to load the pretrained cyclegan (horse2zebra) model as below code template,

model = XXXModel()
model.load_state_dict(torch.load('latest_net_G.pth'))

dumb question please. which XXXModel should I use in your code base please? I'm assuming that it should be a child class of torch.nn.Module.

or could you save and share the whole model for reference please? :)

Thank you very much!

Forget about it. Figured out from the test_model.py. :)

Can you write please how did you solve this problem?

@ZHE-SAPI
Copy link

ZHE-SAPI commented Nov 7, 2021

Hi, @junyanz , when I click on the following URL https://people.eecs.berkeley.edu/~taesung_park/pytorch-CycleGAN-and-pix2pix/models/$FILE.pth, it shows "Resource not found".
Could you please upload the pretrained models and related datasets again? Thanks!

@taesungp
Copy link
Collaborator

taesungp commented Nov 7, 2021

Hello,

we've updated the URLs to the pretrained models. The models are now at http://efrosgans.eecs.berkeley.edu/cyclegan/pretrained_models/.

@sameerjvn
Copy link

Hi @junyanz @taesungp, I would like to compare the performance of the CycleGANs with UNET generator v/s ResNet generator. I had a few questions:

  1. Do you have training details of your pre-trained models? (How many epochs, loss curves, etc.)
  2. Since the CycleGAN class is using the ResNet 9-blocks generator by default, I am assuming that the pre-trained models are for this generator. In such case, Do you have pre-trained models using the UNET generator? (256 or 128)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests