sam_inversion icon indicating copy to clipboard operation
sam_inversion copied to clipboard

Add Replicate demo and API

Open ariel415el opened this issue 2 years ago • 1 comments

Hey @GaParmar and @junyanz ! 👋

Good work on this project I was very impressed by the reconstruction quality of the suggested inversion process. The images actually look better that the original in some cases !

This pull request creates an online cloud demo and API for this repository on Replicate.com. These are based on a docker enviroment built for this repository and makes it easier for other people to run it.

You can view the demo here: https://replicate.com/adobe-research/sam_inversion And running the demos functionatlity with our API is as simple as:

import replicate
model = replicate.models.get("[adobe-research/sam_inversion]")
model.predict(image_path=, image_category=, edit_direction=, change_norm=, thresh=)

By clicking on "Claim this model" on the demo site you'll be able to edit the demo site, add/remove examples of your liking and we'll feature it on our website and tweet about it too.

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. 😊

ariel415el avatar Jul 01 '22 12:07 ariel415el

@ariel415el I'm not involved in the development of this code, so I defer to @junyanz and @GaParmar on this PR.

cjchapman avatar Jul 01 '22 16:07 cjchapman