Fooocus icon indicating copy to clipboard operation
Fooocus copied to clipboard

How to set Fooocus up on Replit as a standalone Repl?

Open vanetreg opened this issue 2 years ago • 7 comments

Since Fooocus app at Gradio link doesn't work (image generation drops error with default settings), also free Colab doesn't have sufficient resources, I decided to install Fooocus to Replit, but by default the app is available at either localhost or at a 3-day-live Gradio link. How should I set this up to be available on Replit, where and what should I modify? Thanks!

vanetreg avatar Dec 29 '23 12:12 vanetreg

I don't have any answers to your Replit question unfortunately, however I've been using free colab without much issue successfully. The only difficulty is getting the output images which just takes a zip command and then manual download.

eddyizm avatar Dec 29 '23 18:12 eddyizm

...however I've been using free colab without much issue successfully.

When I use input image, app crashes on free Colab for me.

vanetreg avatar Dec 29 '23 20:12 vanetreg

...however I've been using free colab without much issue successfully.

When I use input image, app crashes on free Colab for me.

ok, I think I had this issue as well. I believe it is a known bug that has already been opened in another issue. There's a few things generally associated with the input image and dragging a resulting image back into the input image that has a similar issue. I should have put a caveat that it generally works but not every single feature. However the speed makes up for it in my case. Good luck!

eddyizm avatar Dec 30 '23 06:12 eddyizm

@vanetreg @eddyizm this is not a bug but a limitation of RAM, mentioned in this discussion: https://github.com/lllyasviel/Fooocus/discussions/74#discussioncomment-7966878 Dragging images down from generated results to input image doesn't work on Colab as it's a remote server and temp paths do not work here. See https://github.com/lllyasviel/Fooocus/issues/1425

mashb1t avatar Dec 30 '23 11:12 mashb1t

@mashb1t thanks that is good to know. Should still be able to manually download the image and then use it as a regular input image right?

eddyizm avatar Dec 30 '23 17:12 eddyizm

@vanetreg @eddyizm this is not a bug but a limitation of RAM, mentioned in this discussion: #74 (reply in thread) Dragging images down from generated results to input image doesn't work on Colab as it's a remote server and temp paths do not work here. See #1425

I - as the original poster - never have written the issue related to generated image dragged down to input image. I was trying to do face swap with input image and prompt and it didn't work on free Colab.

Note: I didn't report a bug, but asked how to set Fooocus up on Replit ( I don't want to buy a gamer / Apple laptop ), but it's offed... :)

vanetreg avatar Dec 30 '23 18:12 vanetreg

@vanetreg yeah, sorry for getting off-topic. I couldn't find anything for Replit, but for replicate.com though ^^ @eddyizm last off-topic comment: no, input image is not working on Colab (Free), only with higher RAM in Colab (Paid).

mashb1t avatar Dec 30 '23 18:12 mashb1t

@vanetreg did you find a solution? I mean, basically it's a docker setup with a container, right? You might be able to build the container with the help of changes in https://github.com/lllyasviel/Fooocus/pull/1418

mashb1t avatar Jan 18 '24 22:01 mashb1t

Hi @mashb1t no, I've set it up on payed Google Colab. Replit doesn't provide optionally GPU as of now.

vanetreg avatar Jan 19 '24 08:01 vanetreg