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

Add Replicate demo and API  #2

Merged
merged 1 commit into from
Sep 18, 2022
Merged

Add Replicate demo and API  #2

merged 1 commit into from
Sep 18, 2022

Conversation

chenxwh
Copy link
Contributor

@chenxwh chenxwh commented Sep 17, 2022

Hey @mkshing ! 👋

This pull request makes it possible to run your model inside a Docker environment, which makes it easier for other people to run it. We're using an open source tool called Cog to make this process easier.

This also means we can make a web page where other people can run your model! View it here: https://replicate.com/cjwbw/japanese-stable-diffusion

Replicate also have an API, so people can easily run your model from their code:

import replicate
model = replicate.models.get("cjwbw/japanese-stable-diffusion")
output = model.predict(prompt="サラリーマン 油絵")

You are more than welcome to modify the Replicate page (e.g. Example Gallery), let me know and I can transfer ownership to your Replicate account.

In case you're wondering who I am, I'm from Replicate, where we're trying to make machine learning reproducible. We got frustrated that we couldn't run all the really interesting ML work being done. So, we're going round implementing models we like. 😊

@mkshing
Copy link
Contributor

mkshing commented Sep 18, 2022

Hi @chenxwh! Thank you for your interest and for deploying Japanese Stable Diffusion on the Replicate.
Your code looks good to me and I am happy to merge it. Although I don’t have any comments on your code at the moment, could I get the ownership for the case I change it in the future?
thank you in advance.
I will close this PR once our conversation is done :)

@chenxwh
Copy link
Contributor Author

chenxwh commented Sep 18, 2022

The page has been transferred to https://replicate.com/rinnakk/japanese-stable-diffusion now :)

There are several ways to modify the replicate page, you may refer to this for the steps. (When you push, cog.yaml and predict.py should be in the root directory and the weights should be downloaded and cached for faster load/inference for the demo).

If you need any further clarification, let me know!

@mkshing
Copy link
Contributor

mkshing commented Sep 18, 2022

@chenxwh awesome! I will merge this then.

@mkshing mkshing merged commit aee8717 into rinnakk:master Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants