Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhixiongtan opened this issue Sep 29, 2021 · 8 comments

Comments

@zhixiongtan
Copy link

No description provided.

@zhixiongtan
Copy link
Author

zhixiongtan commented Sep 29, 2021

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

@zhixiongtan zhixiongtan changed the title how can How can I get the same result like result in https://replicate.ai/arantxacasanova/ic_gan in colab Sep 29, 2021
@ArantxaCasanova
Copy link
Contributor

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
Copy link
Author

zhixiongtan commented Sep 29, 2021

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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

@zhixiongtan
Copy link
Author

zhixiongtan commented Oct 8, 2021

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants