Giter VIP home page Giter VIP logo

Comments (3)

junyanz avatar junyanz commented on August 20, 2024

You can do it by changing the lambda hyper-parameters.
For cLR-GAN: set --lambda_GAN 0 and --lambda_kl 0.
For cVAE-GAN: set --lambda_GAN2 0 and --lambda_z 0.

from bicyclegan.

myway0101 avatar myway0101 commented on August 20, 2024

Thank you very much for your response!
It is very simple :)

from bicyclegan.

myway0101 avatar myway0101 commented on August 20, 2024

Hi,

Thank you for sharing your great work!

As your above suggestion, I try to train cVAE-GAN model by setting --lambda_GAN2 0 and --lambda_z 0.
python .\train.py^
--display_id 1^
--dataroot .\datasets\polyp_612^
--model bicycle_gan^
--which_direction BtoA^
--checkpoints_dir .\checkpoints\polyp_612^
--loadSize 256^
--fineSize 256^
--nz 8^
--input_nc 1^
--niter 30^
--niter_decay 30^
--use_dropout^
--lambda_GAN2 0^
--lambda_z 0

But, I got this error:
create web directory .\checkpoints\polyp_612\web...
Traceback (most recent call last):
File ".\train.py", line 36, in
model.optimize_parameters()
File "E:\BicycleGAN\models\bicycle_gan_model.py", line 212, in optimize_parameters
self.update_G_and_E()
File "E:\BicycleGAN\models\bicycle_gan_model.py", line 200, in update_G_and_E
self.backward_EG()
File "E:\BicycleGAN\models\bicycle_gan_model.py", line 156, in backward_EG
self.loss_G_GAN2 = self.backward_G_GAN(self.fake_data_random, self.netD2, self.opt.lambda_GAN2)
AttributeError: 'BiCycleGANModel' object has no attribute 'netD2'

If I train original model(BicycleGAN), i.e., didn't set --lambda_GAN2 and --lambda_z, training is working.

Could you help me solve this problem or any other way to train cVAE-GAN model?

Thank you.

from bicyclegan.

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.