-
Notifications
You must be signed in to change notification settings - Fork 16
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
[Feature Request]: Replicate support #36
Comments
@machineminded any chance of getting this on the roadmap? I am happy to implement it myself if you can point out what inputs/variables need to be passed. |
I haven't had a chance to look at this yet. But please, if you want to integrate this feel free. What inputs are you looking for? The inswapper stuff? |
I'll need to know what packages you added to the branch so I can list them in the requirements in In a cog model (Replicate's format) you do all the prediction in a single file https://github.com/mrhan1993/Fooocus-API/blob/main/predict.py You specify the possible input fields in For example in the above code they declare an input variable
IMO the best course of action would be to do a minimal implementation of InstantID. What would be the minimal input needed to invoke a generation with InstantID? I'd imagine you're using some kind of boolean like What are those fields and how do you pass them to the underlying Fooocus model? |
Is there an existing issue for this?
What would your feature do?
Hi! Great work with this fork.
Putting in a request for adding replicate.com support.
Proposed workflow
It's as simple as adding two files - a
cog.yaml
that specifies underlying pip packages and other environment details (CUDA version etc)https://github.com/mrhan1993/Fooocus-API/blob/main/cog.yaml
and a
predict.py
where the model is loaded and the input types are specifiedhttps://github.com/mrhan1993/Fooocus-API/blob/main/predict.py
You would just have to copy these two files to the repo and then modify to add support for whatever changes you've made to enable InstantID, etc.
Additional information
Further info on the Cog package, which is a wrapper for docker, at https://cog.run
The text was updated successfully, but these errors were encountered: