facebookresearch / CutLER

Code release for "Cut and Learn for Unsupervised Object Detection and Instance Segmentation" and "VideoCutLER: Surprisingly Simple Unsupervised Video Instance Segmentation"
Other
935 stars 91 forks source link

Add Replicate demo and API #10

Closed chenxwh closed 1 year ago

chenxwh commented 1 year ago

Hey @frank-xwang! 👋

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/cutler

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

import replicate
model = replicate.models.get("cjwbw/cutler")
model.predict(image=...)

Facebookresearch already has a few demo pages on Replicate here, and we would like to transfer this page to facebookresearch account too so you can modify and update the page, let us know!

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

frank-xwang commented 1 year ago

Hello @chenxwh,

Thank you for submitting your pull request and for creating demos for us. Could you please move the "predict.py" file into the "maskcut" folder? This would help keep all MaskCut-related files organized in the same location, as "predict.py" is primarily used for running MaskCut.

Thank you! Xudong

chenxwh commented 1 year ago

Hi Xudong,

Thanks for the suggestion, just updated the files!

frank-xwang commented 1 year ago

Thank you! Merged.

chenxwh commented 1 year ago

Thanks for merging! The page is now under facebookresearch org on Replicate https://replicate.com/facebookresearch/cutler, free feel to update and modify the page :D

frank-xwang commented 1 year ago

Got it! Thanks!