Incubator-mxnet: question about mxnet implementation of CycleGAN

Created on 24 May 2017  路  4Comments  路  Source: apache/incubator-mxnet

I am trying to implement CycleGAN (https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix) with mxnet. I need to realize two generator networks for style translation between A and B, and the cycle loss will be

inputA -> GeneratorB -> fakeB -> GeneratorA -> A'
inputB -> GeneratorA -> fakeA -> GeneratorB -> B'
loss = L1loss(inputA, A') + L1loss(inputB, B')

I tried to use MakeLoss function, but I am lost with how to make the cycle symbol. Is there an easy way to implement this kind of cycle network in mxnet?

Really appreciate any suggestions and advice.

Most helpful comment

My implementation is the same with @Godricly , made 4 symbols(Generator A, Generator B, Dscriminator A, Descriminator B). and train them one by one, you can also refer to the torch implementation:
https://github.com/junyanz/CycleGAN, My implementation was based on it.

All 4 comments

I made 4 symbols and trained them one by one.

My implementation is the same with @Godricly , made 4 symbols(Generator A, Generator B, Dscriminator A, Descriminator B). and train them one by one, you can also refer to the torch implementation:
https://github.com/junyanz/CycleGAN, My implementation was based on it.

Thanks a lot! I'll have a try.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WangcsShuai picture WangcsShuai  路  3Comments

zy-huang picture zy-huang  路  3Comments

ranti-iitg picture ranti-iitg  路  3Comments

luoruisichuan picture luoruisichuan  路  3Comments

sbodenstein picture sbodenstein  路  3Comments