Skip to content
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

concat a super resolution model after the stable diffusion model. #48

Open
jjwang13 opened this issue Sep 4, 2023 · 0 comments
Open

Comments

@jjwang13
Copy link

jjwang13 commented Sep 4, 2023

Hi,

Thank you so much for this amazing lib!

I was able to successfully reproduce your example at https://replicate.com/docs/get-started/swiftui. In the next steps section, you suggested we can concat a super resolution model after the stable diffusion model. I was wondering if you could show some code snippet on how to modify the example for this please. I found a hard time to implement it in a nice way. What I tried was something like below. The problem is that SuperResolutionView would be redrawn too many times. What we need is to only draw it once.

...
case .succeeded:
if let url = prediction.output?.first {
SuperResolutionView(url)
}
...

Best,
Jeff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant