-
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
Not work in google colab. #6
Comments
I will need to make a separate configuration script for unix-like environments. Shouldn't be too much work. I am not familiar with Google Colab but can make an effort. |
@Rondalter I did go in and update the notebook. I am trying to use it but I don't think it will work because it is saying I have zero compute resources available. I'm not familiar with how Colab works but if you could test it out that would be great. |
equirement already satisfied: pygit2==1.12.2 in /usr/local/lib/python3.10/dist-packages (1.12.2) This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run |
it stays at that point. |
I should have asked if this was for inswapper or PhotoMaker. |
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run gradio deploy from Terminal to deploy to Spaces (https://huggingface.co/spaces) |
the same issue, infinite generation of even a normal image. The style button doesn't load either. The fooocus itself doesn't work, I think it's the problem. |
I am still working thru this. It will take some time but hopefully soon. |
Let us know when you fix the problem, all work has stopped. Thx |
@EntonyHop Understood - I will try to get this working. |
I am am able to see normal Fooocus features working now in another branch. I found the issue with the inswapper integration on linux and will resolve that next. |
This has been difficult for me to test. But I am making progress. We need a better way to manage the queue: Additionally, I believe they have some code in place that detects if you are running Stable Diffusion on the free tier, so the VM/container gets shut down. I don't have a paid subscription otherwise this would be easier for me to test. Will consider paying in order to get this issue closed up. |
try to kaggle |
Thanks for the suggestion. I'll check it out! |
no additional code, but args for better resource allocation: lllyasviel#1710 |
does in-swapper work for colab now? |
@dmitryalexander omg, nvm, wrong repository. I'm so sorry 😬 |
yeah i got the inswapper working, but i couldn't get the instantID or the photo maker to work |
@dmitryalexander Is it just not working in colab? What is the error? I don't have a good way to support colab because I'd have to pay for it to use SD. |
it's only 10$ a month for colab. but yeah, the instant id, it just doesn't activate... it's like it's invisible and the photomaker, it says something like trigger word activated more than once... and it doesn't work from there, i guess that problem happens on some CUDA cards. but apparently the main branch fixed that issue, but i wasn't able to find out how. |
Can you show me the actual log output or a screenshot if you get a chance? |
Traceback (most recent call last): File "/content/Fooocus-inswapper/modules/async_worker.py", line 1047, in worker handler(task) File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "/content/Fooocus-inswapper/modules/async_worker.py", line 915, in handler imgs = generate_photomaker(photomaker_prompt, photomaker_source_images, photomaker_negative_prompt, steps, task['task_seed'], width, height, guidance_scale, loras, sampler_name, scheduler_name, async_task) File "/content/Fooocus-inswapper/modules/pm.py", line 119, in generate_photomaker images = pipe( File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "/content/Fooocus-inswapper/photomaker/pipeline.py", line 344, in call ) = self.encode_prompt_with_trigger_word( File "/content/Fooocus-inswapper/photomaker/pipeline.py", line 176, in encode_prompt_with_trigger_word raise ValueError( ValueError: PhotoMaker currently does not support multiple trigger words in a single prompt. Trigger word: img, Prompt: completely normal prompt nothing to see here. Total time: 0.47 seconds |
apparently the problem was that there's some kind of space before the trigger word... or something like that? |
Oh, yeah. This is how PhotoMaker works: you need to put "img" in the prompt after "man" or "woman". So your prompt with PhotoMaker enabled might be something like: "woman img, smile, long hair, standing in a library, incredible lighting" Check out some of the documentation here: https://github.com/TencentARC/PhotoMaker?tab=readme-ov-file#use-like-diffusers "img" is the default trigger word. |
interesting....i'll try it out :thanks: |
I am running it in colab, and since the modification that added the photomaker it does not work.
You click on generate and it stays blocked.
The text was updated successfully, but these errors were encountered: