Skip to content

Commit

Permalink
Created using Colab
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-robin committed Jan 9, 2025
1 parent 9d3b040 commit 30de241
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions fooocus_colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"cells": [
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {
"id": "VjYy0F2gZIPR",
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "2bd2c7b1-1c79-4243-fd6f-ea7848e79e12"
"outputId": "28a65cf9-a422-4dc1-c478-5dead8492f84"
},
"outputs": [
{
Expand All @@ -20,9 +20,9 @@
"Requirement already satisfied: pycparser in /usr/local/lib/python3.10/dist-packages (from cffi>=1.16.0->pygit2==1.15.1) (2.22)\n",
"/content\n",
"fatal: destination path 'Fooocus' already exists and is not an empty directory.\n",
"/content/Fooocus/models/lora/PonyRealismEnhancer.safetensors: No such file or directory\n",
"/content/Fooocus/models/stable-diffusion/PonyRealism.safetensors: No such file or directory\n",
"/content/Fooocus\n",
"models/lora/PonyRealismEnhancer.safetensors: No such file or directory\n",
"models/stable-diffusion/PonyRealism.safetensors: No such file or directory\n",
"Already up-to-date\n",
"Update succeeded.\n",
"[System ARGV] ['entry_with_update.py', '--share', '--always-high-vram']\n",
Expand All @@ -40,15 +40,15 @@
"IMPORTANT: You are using gradio version 3.41.2, however version 4.44.1 is available, please upgrade.\n",
"--------\n",
"Running on local URL: http://127.0.0.1:7865\n",
"Running on public URL: https://6a4eff81399be79db5.gradio.live\n",
"Running on public URL: https://a7cd5ccf0dbdfa1e0a.gradio.live\n",
"\n",
"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)\n",
"model_type EPS\n",
"UNet ADM Dimension 2816\n",
"Using pytorch attention in VAE\n",
"Working with z of shape (1, 4, 32, 32) = 4096 dimensions.\n",
"Using pytorch attention in VAE\n",
"extra {'cond_stage_model.clip_l.text_projection', 'cond_stage_model.clip_l.logit_scale'}\n",
"extra {'cond_stage_model.clip_l.logit_scale', 'cond_stage_model.clip_l.text_projection'}\n",
"left over keys: dict_keys(['cond_stage_model.clip_l.transformer.text_model.embeddings.position_ids'])\n",
"loaded straight to GPU\n",
"Requested to load SDXL\n",
Expand All @@ -63,16 +63,14 @@
"Requested to load GPT2LMHeadModel\n",
"Loading 2 new models\n",
"[Fooocus Model Management] Moving model(s) has taken 0.59 seconds\n",
"2025-01-09 08:41:53.201632: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:485] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered\n",
"2025-01-09 08:41:53.222758: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:8454] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered\n",
"2025-01-09 08:41:53.229599: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1452] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered\n",
"2025-01-09 08:41:53.253042: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\n",
"2025-01-09 08:42:51.714045: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:485] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered\n",
"2025-01-09 08:42:51.813583: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:8454] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered\n",
"2025-01-09 08:42:51.864757: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1452] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered\n",
"2025-01-09 08:42:52.170126: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\n",
"To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\n",
"2025-01-09 08:41:54.985438: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\n",
"Started worker with PID 3614\n",
"App started successful. Use the app with http://127.0.0.1:7865/ or 127.0.0.1:7865 or https://6a4eff81399be79db5.gradio.live\n",
"Keyboard interruption in main thread... closing server.\n",
"Killing tunnel 127.0.0.1:7865 <> https://6a4eff81399be79db5.gradio.live\n"
"2025-01-09 08:42:53.974803: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\n",
"Started worker with PID 3954\n",
"App started successful. Use the app with http://127.0.0.1:7865/ or 127.0.0.1:7865 or https://a7cd5ccf0dbdfa1e0a.gradio.live\n"
]
}
],
Expand All @@ -81,8 +79,11 @@
"!pip install pygit2==1.15.1\n",
"%cd /content\n",
"!git clone https://github.com/lllyasviel/Fooocus.git\n",
"!wget -O '/content/Fooocus/models/lora/PonyRealismEnhancer.safetensors' \"https://civitai.com/api/download/models/1037996token=e6006ea5c7182e82de296fd6fcfcf095\"\n",
"!wget -O '/content/Fooocus/models/stable-diffusion/PonyRealism.safetensors' \"https://civitai.com/api/download/models/534642token=e6006ea5c7182e82de296fd6fcfcf095\"\n",
"\n",
"%cd /content/Fooocus/models/lora/\n",
"!wget -O 'PonyRealismEnhancer.safetensors' \"https://civitai.com/api/download/models/1037996token=e6006ea5c7182e82de296fd6fcfcf095\"\n",
"%cd /content/Fooocus/models/stable-diffusion/\n",
"!wget -O 'PonyRealism.safetensors' \"https://civitai.com/api/download/models/534642token=e6006ea5c7182e82de296fd6fcfcf095\"\n",
"\n",
"%cd /content/Fooocus\n",
"!python entry_with_update.py --share --always-high-vram"
Expand Down

0 comments on commit 30de241

Please sign in to comment.