jquesnelle / txt2imghd

A port of GOBIG for Stable Diffusion
MIT License
691 stars 82 forks source link

Add Replicate demo and API  #26

Closed chenxwh closed 1 year ago

chenxwh commented 1 year ago

Hey @jquesnelle ! 👋

Very cool implementation of getting high-resolution images from stable-diffusion!

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/stable-diffusion-high-resolution

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

import replicate
model = replicate.models.get("cjwbw/stable-diffusion-high-resolution")
output = model.predict(prompt="...")

You are more than welcome to modify and update new versions to the Replicate page, 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. 😊

jquesnelle commented 1 year ago

Hey, interesting project! Thanks for helping make this more accessible 🙂