facebookresearch / ic_gan

Official repository for the paper "Instance-Conditioned GAN" by Arantxa Casanova, Marlene Careil, Jakob Verbeek, Michał Drożdżal, Adriana Romero-Soriano.
Other
535 stars 73 forks source link

How can I get the same result like result in https://replicate.ai/arantxacasanova/ic_gan in colab #18

Open zhixiongtan opened 3 years ago

zhixiongtan commented 3 years ago

How can I get the same result like result in https://replicate.ai/arantxacasanova/ic_gan in colab

I get bad result when I use colab code, but get excel result when I use the https://replicate.ai/arantxacasanova/ic_gan

ArantxaCasanova commented 3 years ago

Hi, this is strange. Code for both the colab notebook and the replicate.ai demo are the same. I get similar looking images when using both the colab and replicate.ai demo. As far as I am aware, replicate.ai's demo uses the code in here which is a subset of the code presented in the colab notebook.

I will need some extra details with the exact input you are using, the parameters chosen and the outputs you are getting (including the outputs of each of Colab's cells).

zhixiongtan commented 3 years ago

Hi, this is strange. Code for both the colab notebook and the replicate.ai demo are the same. I get similar looking images when using both the colab and replicate.ai demo. As far as I am aware, replicate.ai's demo uses the code in here which is a subset of the code presented in the colab notebook.

I will need some extra details with the exact input you are using, the parameters chosen and the outputs you are getting (including the outputs of each of Colab's cells).

Thanks for you reply. This is my result. In the meantime, I have to run cell [Generate images with IC-GAN!] twice before I sucess. The first time would course the colab crash with no error. Use GPU with colab pro https://colab.research.google.com/drive/1p7YVfuy6lVmeTb7fYNdetvgJ9JbsAGVs?usp=sharing

2c369028eff6176c6c7c5e800ad65b09 2 this is my picture:

ArantxaCasanova commented 3 years ago

I saved the image you provided to use as instance conditioning and I cannot reproduce your issue (I saw the outputs you are obtaining in the link you provided). In my case, I obtain exactly the same outputs in the Colab notebook and in the replicate.ai demo.

Can you try the following? Run all cells of the Colab notebook, one after the other, without restarting the colab notebook at any point (even if the first cell tells you to do so). Then upload the image as you did, and try to generate samples. Does the issue still happen?

zhixiongtan commented 3 years ago

I saved the image you provided to use as instance conditioning and I cannot reproduce your issue (I saw the outputs you are obtaining in the link you provided). In my case, I obtain exactly the same outputs in the Colab notebook and in the replicate.ai demo.

Can you try the following? Run all cells of the Colab notebook, one after the other, without restarting the colab notebook at any point (even if the first cell tells you to do so). Then upload the image as you did, and try to generate samples. Does the issue still happen?

Thanks for your reply.

I have to restart. Because my colab would be crash when I run the "Generate images with IC-GAN!]" cell for the firsh time . After it crashed. It will restart by itself.

ArantxaCasanova commented 3 years ago

What is the exact message Colab provides you when it crashes?

zhixiongtan commented 3 years ago

What is the exact message Colab provides you when it crashes?

SO thanks for your reply! It crashes without any message expect a useless warning. I use the colab pro.

ArantxaCasanova commented 3 years ago

I am sorry but I am afraid I don't know how to help you with this issue. I do not have Colab Pro, the error that you are getting is unclear, I cannot reproduce your bug and nobody else reported a similar issue to me. I can leave this issue open to see if somebody in the future has the same problem. If you manage (or managed) to resolve it, please post the solution and close the issue.