arnab39 / cyclegan-pytorch Goto Github PK
View Code? Open in Web Editor NEWA clean and lucid implementation of cycleGAN using PyTorch
License: MIT License
A clean and lucid implementation of cycleGAN using PyTorch
License: MIT License
Hi , I ma getting an error for OSError: image file is truncated. for my dataset.
Could you please advice. Thanks
I run main.py on Google Colab , and I got the message bellow.
File "/content/grive/My Drive/CycleGAN/cycleGAN-PyTorch/utils.py", line 37, in create_link os.path.join(dirs[key], 'Link')) OSError: [Errno 95] Operation not supported: '/content/grive/My Drive/CycleGAN/cycleGAN-PyTorch/datasets/horse2zebra/trainA' -> './datasets/horse2zebra/ltrainA/Link'
I think it's better to copy trainA to ltrainA without using the link.
Hi, your code is very clean thanks!
But I think that naming can be confusing. At https://github.com/arnab39/cycleGAN-PyTorch/blob/master/model.py#L107 you named a_fake = self.Gab(b_real)
, the generator of a
to b
taking a b
example should not generate the identity (a_idt)? In all examples I show, the followed nomenclature for generators is this Gxy, generator from x to y...
Assuming that, all generators naming are reversed. What do you think?
In training, discriminator gradient is set to false while generator is updating.
But I tried with no discriminator lock, and it it seems the result was same.
I wonder the lock code needs in PyTorch?
Hello,
I am getting this error.
I have implemented your code ,but written a custom dataset loader for my image patches.
Can you tell me how can I solve this error
Hello, great code.
I think you should add one more option to map from B to A in testing
Line 24 in ecdc973
Besides, we do not need to shuffle in testing.
a_test_data = dsets.ImageFolder(dataset_dirs['testA'], transform=transform)
b_test_data = dsets.ImageFolder(dataset_dirs['testB'], transform=transform)
a_test_loader = torch.utils.data.DataLoader(a_test_data, batch_size=args.batch_size, shuffle=True, num_workers=4)
b_test_loader = torch.utils.data.DataLoader(b_test_data, batch_size=args.batch_size, shuffle=True, num_workers=4)
You save my life~
Do you think this is mode collapse? (Training: 50% epoch: 100/200)
horse2zebra
I want to know how to Improve this problem, thanks.
You are setting '0โฒ to the offset parameter at 'utils.LambdaLR'.
I don't know how to use it. Is it always '0' even if training was continued?
Whenever i try to run it on colab it shows:
File "main.py", line 40, in main
create_link(args.dataset_dir)
File "/content/drive/My Drive/cycleGAN-PyTorch/utils.py", line 37, in create_link
os.path.join(dirs[key], 'Link'))
Operation not supported: '/content/drive/My Drive/cycleGAN-PyTorch/datasets/horse2zebra/trainA' -> '/content/drive/My Drive/cycleGAN-PyTorch/datasets/horse2zebra/ltrainA/Link'
what can i do?
Currently the code use GPU by default. Can we train it by using CPU??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.