mit-han-lab / fastcomposer

[IJCV] FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention
https://fastcomposer.mit.edu
MIT License
658 stars 37 forks source link

Add Replicate demo and API #3

Closed chenxwh closed 1 year ago

chenxwh commented 1 year ago

Hey @tianweiy, @Guangxuan-Xiao! 👋

This pull request makes it possible to run fastcomposer on Replicate (https://replicate.com/cjwbw/fastcomposer) and via API:

import replicate
model = replicate.models.get(<model_name>)
model.predict(prompt=...)

We would also like to transfer the ownership to mit-han-lab so you could easily modify the model and push changes :)

tianweiy commented 1 year ago

Thank you for the pull request. Most of us are travelling recently and we will get back to you next week.

Best, Tianwei