Closed jrivgento closed 4 months ago
I have the same problem for 2 hours
I have the same problem now.
Same here, this tend to be a new issue
I'm facing the same issue.
i'm facing the same issue here, is it bug or something else?
I can confirm the issue. After a first investigation and a restart of Fooocus on Colab this message is output:
Running on local URL: http://127.0.0.1:7865/
Could not create share link. Missing file: /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2.
Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:
1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64
2. Rename the downloaded file to: frpc_linux_amd64_v0.2
3. Move the file to this location: /usr/local/lib/python3.10/dist-packages/gradio
Can you confirm that this also happens for you? I assume that Colab has restricted access to sharing for Fooocus or in general for Gradio, but this may also be a coincidence.
what's next? do we need to follow
I can confirm the issue. After a first investigation and a restart of Fooocus on Colab this message is output:
Running on local URL: http://127.0.0.1:7865/ Could not create share link. Missing file: /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2. Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps: 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 2. Rename the downloaded file to: frpc_linux_amd64_v0.2 3. Move the file to this location: /usr/local/lib/python3.10/dist-packages/gradio
Can you confirm that this also happens for you? I assume that Colab has restricted access to sharing for Fooocus or in general for Gradio, but this may also be a coincidence.
Still Not Working
I can confirm the issue. After a first investigation and a restart of Fooocus on Colab this message is output:
Running on local URL: http://127.0.0.1:7865/ Could not create share link. Missing file: /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2. Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps: 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 2. Rename the downloaded file to: frpc_linux_amd64_v0.2 3. Move the file to this location: /usr/local/lib/python3.10/dist-packages/gradio
Can you confirm that this also happens for you? I assume that Colab has restricted access to sharing for Fooocus or in general for Gradio, but this may also be a coincidence.
that massage not showing in mine, just say could not find tensoRT. is it related to this?
2024-04-27 04:21:17.095095: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-04-27 04:21:17.095147: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-04-27 04:21:17.204754: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2024-04-27 04:21:19.573184: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT Refiner unloaded. Running on local URL: http://127.0.0.1:7865/ model_type EPS UNet ADM Dimension 2816 Using pytorch attention in VAE
I can confirm the issue. After a first investigation and a restart of Fooocus on Colab this message is output:
Running on local URL: http://127.0.0.1:7865/ Could not create share link. Missing file: /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2. Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps: 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 2. Rename the downloaded file to: frpc_linux_amd64_v0.2 3. Move the file to this location: /usr/local/lib/python3.10/dist-packages/gradio
Can you confirm that this also happens for you? I assume that Colab has restricted access to sharing for Fooocus or in general for Gradio, but this may also be a coincidence.
that massage not showing in mine, just say could not find tensoRT. is it related to this?
2024-04-27 04:21:17.095095: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-04-27 04:21:17.095147: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-04-27 04:21:17.204754: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2024-04-27 04:21:19.573184: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT Refiner unloaded. Running on local URL: http://127.0.0.1:7865/ model_type EPS UNet ADM Dimension 2816 Using pytorch attention in VAE
That is unrelated.
I can confirm the issue. After a first investigation and a restart of Fooocus on Colab this message is output:
Running on local URL: http://127.0.0.1:7865/ Could not create share link. Missing file: /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2. Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps: 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 2. Rename the downloaded file to: frpc_linux_amd64_v0.2 3. Move the file to this location: /usr/local/lib/python3.10/dist-packages/gradio
Can you confirm that this also happens for you? I assume that Colab has restricted access to sharing for Fooocus or in general for Gradio, but this may also be a coincidence.
that massage not showing in mine, just say could not find tensoRT. is it related to this? 2024-04-27 04:21:17.095095: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-04-27 04:21:17.095147: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-04-27 04:21:17.204754: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2024-04-27 04:21:19.573184: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT Refiner unloaded. Running on local URL: http://127.0.0.1:7865/ model_type EPS UNet ADM Dimension 2816 Using pytorch attention in VAE
That is unrelated.
i would be careful downloading any files like that. it feels too much like a hacking attempt.
fooocus shouldn't be doing anything that activates threat protection.
yes but when run in google colab, that massage show too in mine now. now i'm confuse lol
Today the Gradio Share API crashes periodically. https://status.gradio.app/793595965
Colab has been disconnecting me mostly today from the notebook by executing not allowed code which happened when I used Foocus code or I think it was because I tried to train some LoRAs on the same notebook and that may be is the unallowed code, and the whole folder where frpc file is from doesn't seem to exist
I have the same issue as well.
same issue..
same issue..
Here's how you solve the problem.
Go to the google colab..
add these two lines at the top.
!wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb !dpkg -i cloudflared-linux-amd64.deb
comment out the launch.py line
like this...
then it will clone the repo... Next, find the file in your google colab called webui.py
at the very bottom of the webui.py file.... find the line that says: shared.gradio_root.launch(
and paste this code right BEFORE it.
import subprocess import threading import time import socket
def iframe_thread(port): while True: time.sleep(0.5) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) result = sock.connect_ex(('127.0.0.1', port)) if result == 0: break sock.close() print("\nFooocus finished loading, trying to launch cloudflared (if it gets stuck here cloudflared is having issues)\n") p = subprocess.Popen(["cloudflared", "tunnel", "--url", "http://127.0.0.1:{}".format(port)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) for line in p.stderr: l = line.decode() if "trycloudflare.com" in l: print("This is the URL to access Fooocus:", l[l.find("https"):], end='')
port = 7865 # Replace with the port number used by Fooocus threading.Thread(target=iframe_thread, daemon=True, args=(port,)).start()
also change the code inside of shared.gradio_root.launch( TO shared.gradio_root.launch( inbrowser=args_manager.args.in_browser, server_name=args_manager.args.listen, server_port=args_manager.args.port, allowed_paths=[modules.config.path_outputs], blocked_paths=[constants.AUTH_FILENAME] )
original webui.py file
modified webui.py file
uncomment the entry.py line in google Collab
Hit PLAY.
This is a WORKING HOT FIX.
It's working now. There was a problem with gradio share api.
Just tested, works again! Reason was the failing Gradio Share API, see comment https://github.com/lllyasviel/Fooocus/issues/2815#issuecomment-2080388848. Closing this issue, thank you for staying tuned.
@dmitryalexander
same issue..
Here's how you solve the problem.
Bro I tried this, I'm getting something similar to try share=true in launch(), and given trycloudflared link isn't working. 🤔
And getting "App started successful. Use the app with http://127.0.0.1:7865/ or 127.0.0.1:7865 or None" if running the regular version.
same issue..
Here's how you solve the problem.
Bro I tried this, I'm getting something similar to try share=true in launch(), and given trycloudflared link isn't working. 🤔
And getting "App started successful. Use the app with http://127.0.0.1:7865/ or 127.0.0.1:7865 or None" if running the regular version.
Gradio is working now.
I'm not sure why the cloud flare thing didn't work for you, but it shouldn't matter.
you probably input the code incorrectly. python needs to be indented a very specific way which is why i pasted what it looks like
@dmitryalexander yea I fixed the indentation as per your screenshots, don't worry. 😁
And I'm not sure I'm still not getting gradio link, it used to work perfect like 3 weeks ago. Tried reinstalling many times.
...
Request to load LoRAs [['sd_xl_offset_example-lora_1.0.safetensors', 0.1], ['None', 1.0], ['None', 1.0], ['None', 1.0], ['None', 1.0]] for model [/content/gdrive/MyDrive/fooocus_sd/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.safetensors].
Loaded LoRA [/content/gdrive/MyDrive/fooocus_sd/Fooocus/models/loras/sd_xl_offset_example-lora_1.0.safetensors] for UNet [/content/gdrive/MyDrive/fooocus_sd/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.safetensors] with 788 keys at weight 0.1.
Fooocus V2 Expansion: Vocab with 642 words.
Fooocus Expansion engine loaded for cuda:0, use_fp16 = True.
Requested to load SDXLClipModel
Requested to load GPT2LMHeadModel
Loading 2 new models
[Fooocus Model Management] Moving model(s) has taken 0.57 seconds
Started worker with PID 4298
App started successful. Use the app with http://127.0.0.1:7865/ or 127.0.0.1:7865 or None
@dmitryalexander yea I fixed the indentation as per your screenshots, don't worry. 😁
And I'm not sure I'm still not getting gradio link, it used to work perfect like 3 weeks ago. Tried reinstalling many times.
... Request to load LoRAs [['sd_xl_offset_example-lora_1.0.safetensors', 0.1], ['None', 1.0], ['None', 1.0], ['None', 1.0], ['None', 1.0]] for model [/content/gdrive/MyDrive/fooocus_sd/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.safetensors]. Loaded LoRA [/content/gdrive/MyDrive/fooocus_sd/Fooocus/models/loras/sd_xl_offset_example-lora_1.0.safetensors] for UNet [/content/gdrive/MyDrive/fooocus_sd/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.safetensors] with 788 keys at weight 0.1. Fooocus V2 Expansion: Vocab with 642 words. Fooocus Expansion engine loaded for cuda:0, use_fp16 = True. Requested to load SDXLClipModel Requested to load GPT2LMHeadModel Loading 2 new models [Fooocus Model Management] Moving model(s) has taken 0.57 seconds Started worker with PID 4298 App started successful. Use the app with http://127.0.0.1:7865/ or 127.0.0.1:7865 or None
so cloud flare is also not working?
add me on discord to try and get
In fact, it's not working for me now, even I haven't changed code. code:
@dmitryalexander hey man I'm not sure how to add u on discord... Fooocus doesn't seem to have one? I can't find your username as well.
@dmitryalexander hey man I'm not sure how to add u on discord... Fooocus doesn't seem to have one? I can't find your username as well.
my discord is metacosmos
In fact, it's not working for me now, even I haven't changed code. code:
you are missing the line !dpkg -i cloudflared-linux-amd64.deb
also if you didn't change the code in the webui.py file in your google colab it won't work
dmitryalexander's fix works! Just use vpn if trycloudflare link doesn't load for some reason. 😅
In fact, it's not working for me now, even I haven't changed code. code:
you are missing the line !dpkg -i cloudflared-linux-amd64.deb
also if you didn't change the code in the webui.py file in your google colab it won't work
thanks! Hope, I won't write more here 😅
Checklist
What happened?
I have a problem with the colab, the link is not showing and I didn't do anything, I have GPU available yet and I don't know if is it because of any dependence thay may have been updated or something
Steps to reproduce the problem
Execute the cells and wait until it finishes loading
What should have happened?
It should have shown the link of the gradio
What browsers do you use to access Fooocus?
Google Chrome, Microsoft Edge, Android
Where are you running Fooocus?
Cloud (Google Colab)
What operating system are you using?
No response
Console logs
Additional information
I'm using a modded colab, but the original code wasn't changed, I added some some codes for downloading custom models and testing but it shouldn't affect the original code, they are in separated cells. I tried with the original colab and it makes the same error