Comments (3)
@samrudhdhirangrej The code is correct as fake_B_random = netG(real_A_encoded, z_random), which means fake_B_random corresponds to real_A_encoded.
@eveningglow Given the same real image A, we sample a random vector z and produce a fake output (fake_B_random). This implements G(A, z) in Eqn (7) in the paper. Of course, one can also use real_A_random as input for Eqn (7). (let's denote A1=A_encoded and A2=A_random)
In our implementation, we ask D to classify (A1, G(A1, z)) vs. (A2, B2).
In the alternative case, D aims to classify (A2, G(A2, z)) vs. (A2, B2).
In practice, we find that the first implementation can produce slightly more diverse results, as we are mixing different input-output pairs and styles.
Sorry that the variables could have been better named. (Maybe A1, A2 might be better)
@pathak22 Maybe Deepak can explain the intuition better.
from bicyclegan.
I think so too and also in this line which is self.fake_B_random = self.netG.forward(self.real_A_encoded, self.z_random)
, why do you make self.fake_B_random
using self.real_A_encoded
not self.real_A_random
?
from bicyclegan.
@junyanz Thank you for your explanation!
from bicyclegan.
Related Issues (20)
- Why does not large batch size like 128, 256 work well?
- Hi, please help me.
- Question about PatchGAN perception field HOT 4
- Why my LPIPS distance is larger than what your paper say? HOT 3
- Question about conditional_D implementation HOT 3
- Not clear in the difference between the two latent spaces predicted HOT 5
- Test on single images HOT 1
- Compute graph wrong and one question HOT 4
- test_before_push is a great rapid test file, but seems outdated? HOT 3
- Metric reporting HOT 1
- Question about Encoder in cLR-GAN HOT 1
- Question about generating fake_B_random
- Question: Do you need two separate discriminators? HOT 2
- Incorrect discriminator update for opt.use_same_D HOT 1
- Regarding Training your Own Images HOT 4
- How to train on large images?
- Is there <pix2pix+noise> model code that can be directly run? HOT 1
- diversity question
- TypeError: __init__() got an unexpected keyword argument 'nl_layer'
- Regarding Latent Space Interpolation
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 bicyclegan.