Spaces:
Running
Running
prithivMLmods
commited on
Commit
•
0fa18fd
1
Parent(s):
2d193d0
Upload Gen_Vision.ipynb
Browse files- Gen_Vision.ipynb +1097 -0
Gen_Vision.ipynb
ADDED
@@ -0,0 +1,1097 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "markdown",
|
5 |
+
"source": [
|
6 |
+
"# **GEN VISION ⚡**\n",
|
7 |
+
"\n",
|
8 |
+
"**Recommended System Malloc > 12gb RAM**\n",
|
9 |
+
"\n",
|
10 |
+
"If your system has less than 12GB of memory, you can comment out (#) some of the LoRa models that are not required for your current work. This will prevent the models from being loaded and help avoid memory overflow. Here's an example of how you can comment out models in a Python script:\n",
|
11 |
+
"\n",
|
12 |
+
"# model1_weights = load_model_weights(\"model1.h5\")\n",
|
13 |
+
"\n",
|
14 |
+
"\n",
|
15 |
+
"model4_weights = load_model_weights(\"model4.h5\")\n",
|
16 |
+
"\n",
|
17 |
+
"model5_weights = load_model_weights(\"model5.h5\")\n",
|
18 |
+
"\n",
|
19 |
+
"model6_weights = load_model_weights(\"model6.h5\")\n",
|
20 |
+
"\n",
|
21 |
+
"In this example, model1 are commented out, while model4, model5, and model6 are loaded. Adjust the list of models based on your specific requirements.\n"
|
22 |
+
],
|
23 |
+
"metadata": {
|
24 |
+
"id": "5jhZXS2ttkV4"
|
25 |
+
}
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"cell_type": "code",
|
29 |
+
"source": [
|
30 |
+
"!pip install diffusers\n",
|
31 |
+
"!pip install torch\n",
|
32 |
+
"!pip install torchvision\n",
|
33 |
+
"!pip install transformers==4.43.3\n",
|
34 |
+
"!pip install accelerate\n",
|
35 |
+
"!pip install safetensors\n",
|
36 |
+
"!pip install spaces\n",
|
37 |
+
"!pip install peft\n",
|
38 |
+
"!pip install gradio"
|
39 |
+
],
|
40 |
+
"metadata": {
|
41 |
+
"id": "r_zg6coq7Cwr",
|
42 |
+
"outputId": "793fa0f9-b350-4b71-b1b5-5af44003fd37",
|
43 |
+
"colab": {
|
44 |
+
"base_uri": "https://localhost:8080/"
|
45 |
+
}
|
46 |
+
},
|
47 |
+
"execution_count": null,
|
48 |
+
"outputs": [
|
49 |
+
{
|
50 |
+
"output_type": "stream",
|
51 |
+
"name": "stdout",
|
52 |
+
"text": [
|
53 |
+
"Requirement already satisfied: diffusers in /usr/local/lib/python3.10/dist-packages (0.29.2)\n",
|
54 |
+
"Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.10/dist-packages (from diffusers) (8.2.0)\n",
|
55 |
+
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from diffusers) (3.15.4)\n",
|
56 |
+
"Requirement already satisfied: huggingface-hub>=0.23.2 in /usr/local/lib/python3.10/dist-packages (from diffusers) (0.23.5)\n",
|
57 |
+
"Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from diffusers) (1.26.4)\n",
|
58 |
+
"Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.10/dist-packages (from diffusers) (2024.5.15)\n",
|
59 |
+
"Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from diffusers) (2.31.0)\n",
|
60 |
+
"Requirement already satisfied: safetensors>=0.3.1 in /usr/local/lib/python3.10/dist-packages (from diffusers) (0.4.3)\n",
|
61 |
+
"Requirement already satisfied: Pillow in /usr/local/lib/python3.10/dist-packages (from diffusers) (9.4.0)\n",
|
62 |
+
"Requirement already satisfied: fsspec>=2023.5.0 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.23.2->diffusers) (2024.6.1)\n",
|
63 |
+
"Requirement already satisfied: packaging>=20.9 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.23.2->diffusers) (24.1)\n",
|
64 |
+
"Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.23.2->diffusers) (6.0.1)\n",
|
65 |
+
"Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.23.2->diffusers) (4.66.4)\n",
|
66 |
+
"Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.23.2->diffusers) (4.12.2)\n",
|
67 |
+
"Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.10/dist-packages (from importlib-metadata->diffusers) (3.19.2)\n",
|
68 |
+
"Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->diffusers) (3.3.2)\n",
|
69 |
+
"Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->diffusers) (3.7)\n",
|
70 |
+
"Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->diffusers) (2.0.7)\n",
|
71 |
+
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->diffusers) (2024.7.4)\n",
|
72 |
+
"Requirement already satisfied: torch in /usr/local/lib/python3.10/dist-packages (2.3.1+cu121)\n",
|
73 |
+
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch) (3.15.4)\n",
|
74 |
+
"Requirement already satisfied: typing-extensions>=4.8.0 in /usr/local/lib/python3.10/dist-packages (from torch) (4.12.2)\n",
|
75 |
+
"Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch) (1.13.1)\n",
|
76 |
+
"Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch) (3.3)\n",
|
77 |
+
"Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch) (3.1.4)\n",
|
78 |
+
"Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from torch) (2024.6.1)\n",
|
79 |
+
"Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch) (12.1.105)\n",
|
80 |
+
"Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch) (12.1.105)\n",
|
81 |
+
"Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch) (12.1.105)\n",
|
82 |
+
"Requirement already satisfied: nvidia-cudnn-cu12==8.9.2.26 in /usr/local/lib/python3.10/dist-packages (from torch) (8.9.2.26)\n",
|
83 |
+
"Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in /usr/local/lib/python3.10/dist-packages (from torch) (12.1.3.1)\n",
|
84 |
+
"Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in /usr/local/lib/python3.10/dist-packages (from torch) (11.0.2.54)\n",
|
85 |
+
"Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in /usr/local/lib/python3.10/dist-packages (from torch) (10.3.2.106)\n",
|
86 |
+
"Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in /usr/local/lib/python3.10/dist-packages (from torch) (11.4.5.107)\n",
|
87 |
+
"Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in /usr/local/lib/python3.10/dist-packages (from torch) (12.1.0.106)\n",
|
88 |
+
"Requirement already satisfied: nvidia-nccl-cu12==2.20.5 in /usr/local/lib/python3.10/dist-packages (from torch) (2.20.5)\n",
|
89 |
+
"Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch) (12.1.105)\n",
|
90 |
+
"Requirement already satisfied: triton==2.3.1 in /usr/local/lib/python3.10/dist-packages (from torch) (2.3.1)\n",
|
91 |
+
"Requirement already satisfied: nvidia-nvjitlink-cu12 in /usr/local/lib/python3.10/dist-packages (from nvidia-cusolver-cu12==11.4.5.107->torch) (12.6.20)\n",
|
92 |
+
"Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch) (2.1.5)\n",
|
93 |
+
"Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from sympy->torch) (1.3.0)\n",
|
94 |
+
"Requirement already satisfied: torchvision in /usr/local/lib/python3.10/dist-packages (0.18.1+cu121)\n",
|
95 |
+
"Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from torchvision) (1.26.4)\n",
|
96 |
+
"Requirement already satisfied: torch==2.3.1 in /usr/local/lib/python3.10/dist-packages (from torchvision) (2.3.1+cu121)\n",
|
97 |
+
"Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /usr/local/lib/python3.10/dist-packages (from torchvision) (9.4.0)\n",
|
98 |
+
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (3.15.4)\n",
|
99 |
+
"Requirement already satisfied: typing-extensions>=4.8.0 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (4.12.2)\n",
|
100 |
+
"Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (1.13.1)\n",
|
101 |
+
"Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (3.3)\n",
|
102 |
+
"Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (3.1.4)\n",
|
103 |
+
"Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (2024.6.1)\n",
|
104 |
+
"Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (12.1.105)\n",
|
105 |
+
"Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (12.1.105)\n",
|
106 |
+
"Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (12.1.105)\n",
|
107 |
+
"Requirement already satisfied: nvidia-cudnn-cu12==8.9.2.26 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (8.9.2.26)\n",
|
108 |
+
"Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (12.1.3.1)\n",
|
109 |
+
"Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (11.0.2.54)\n",
|
110 |
+
"Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (10.3.2.106)\n",
|
111 |
+
"Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (11.4.5.107)\n",
|
112 |
+
"Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (12.1.0.106)\n",
|
113 |
+
"Requirement already satisfied: nvidia-nccl-cu12==2.20.5 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (2.20.5)\n",
|
114 |
+
"Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (12.1.105)\n",
|
115 |
+
"Requirement already satisfied: triton==2.3.1 in /usr/local/lib/python3.10/dist-packages (from torch==2.3.1->torchvision) (2.3.1)\n",
|
116 |
+
"Requirement already satisfied: nvidia-nvjitlink-cu12 in /usr/local/lib/python3.10/dist-packages (from nvidia-cusolver-cu12==11.4.5.107->torch==2.3.1->torchvision) (12.6.20)\n",
|
117 |
+
"Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch==2.3.1->torchvision) (2.1.5)\n",
|
118 |
+
"Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from sympy->torch==2.3.1->torchvision) (1.3.0)\n",
|
119 |
+
"Requirement already satisfied: transformers==4.43.3 in /usr/local/lib/python3.10/dist-packages (4.43.3)\n",
|
120 |
+
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from transformers==4.43.3) (3.15.4)\n",
|
121 |
+
"Requirement already satisfied: huggingface-hub<1.0,>=0.23.2 in /usr/local/lib/python3.10/dist-packages (from transformers==4.43.3) (0.23.5)\n",
|
122 |
+
"Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from transformers==4.43.3) (1.26.4)\n",
|
123 |
+
"Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.10/dist-packages (from transformers==4.43.3) (24.1)\n",
|
124 |
+
"Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from transformers==4.43.3) (6.0.1)\n",
|
125 |
+
"Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.10/dist-packages (from transformers==4.43.3) (2024.5.15)\n",
|
126 |
+
"Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from transformers==4.43.3) (2.31.0)\n",
|
127 |
+
"Requirement already satisfied: safetensors>=0.4.1 in /usr/local/lib/python3.10/dist-packages (from transformers==4.43.3) (0.4.3)\n",
|
128 |
+
"Requirement already satisfied: tokenizers<0.20,>=0.19 in /usr/local/lib/python3.10/dist-packages (from transformers==4.43.3) (0.19.1)\n",
|
129 |
+
"Requirement already satisfied: tqdm>=4.27 in /usr/local/lib/python3.10/dist-packages (from transformers==4.43.3) (4.66.4)\n",
|
130 |
+
"Requirement already satisfied: fsspec>=2023.5.0 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub<1.0,>=0.23.2->transformers==4.43.3) (2024.6.1)\n",
|
131 |
+
"Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub<1.0,>=0.23.2->transformers==4.43.3) (4.12.2)\n",
|
132 |
+
"Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->transformers==4.43.3) (3.3.2)\n",
|
133 |
+
"Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->transformers==4.43.3) (3.7)\n",
|
134 |
+
"Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->transformers==4.43.3) (2.0.7)\n",
|
135 |
+
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->transformers==4.43.3) (2024.7.4)\n",
|
136 |
+
"Requirement already satisfied: accelerate in /usr/local/lib/python3.10/dist-packages (0.32.1)\n",
|
137 |
+
"Requirement already satisfied: numpy<2.0.0,>=1.17 in /usr/local/lib/python3.10/dist-packages (from accelerate) (1.26.4)\n",
|
138 |
+
"Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.10/dist-packages (from accelerate) (24.1)\n",
|
139 |
+
"Requirement already satisfied: psutil in /usr/local/lib/python3.10/dist-packages (from accelerate) (5.9.5)\n",
|
140 |
+
"Requirement already satisfied: pyyaml in /usr/local/lib/python3.10/dist-packages (from accelerate) (6.0.1)\n",
|
141 |
+
"Requirement already satisfied: torch>=1.10.0 in /usr/local/lib/python3.10/dist-packages (from accelerate) (2.3.1+cu121)\n",
|
142 |
+
"Requirement already satisfied: huggingface-hub in /usr/local/lib/python3.10/dist-packages (from accelerate) (0.23.5)\n",
|
143 |
+
"Requirement already satisfied: safetensors>=0.3.1 in /usr/local/lib/python3.10/dist-packages (from accelerate) (0.4.3)\n",
|
144 |
+
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (3.15.4)\n",
|
145 |
+
"Requirement already satisfied: typing-extensions>=4.8.0 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (4.12.2)\n",
|
146 |
+
"Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (1.13.1)\n",
|
147 |
+
"Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (3.3)\n",
|
148 |
+
"Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (3.1.4)\n",
|
149 |
+
"Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (2024.6.1)\n",
|
150 |
+
"Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (12.1.105)\n",
|
151 |
+
"Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (12.1.105)\n",
|
152 |
+
"Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (12.1.105)\n",
|
153 |
+
"Requirement already satisfied: nvidia-cudnn-cu12==8.9.2.26 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (8.9.2.26)\n",
|
154 |
+
"Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (12.1.3.1)\n",
|
155 |
+
"Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (11.0.2.54)\n",
|
156 |
+
"Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (10.3.2.106)\n",
|
157 |
+
"Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (11.4.5.107)\n",
|
158 |
+
"Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (12.1.0.106)\n",
|
159 |
+
"Requirement already satisfied: nvidia-nccl-cu12==2.20.5 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (2.20.5)\n",
|
160 |
+
"Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (12.1.105)\n",
|
161 |
+
"Requirement already satisfied: triton==2.3.1 in /usr/local/lib/python3.10/dist-packages (from torch>=1.10.0->accelerate) (2.3.1)\n",
|
162 |
+
"Requirement already satisfied: nvidia-nvjitlink-cu12 in /usr/local/lib/python3.10/dist-packages (from nvidia-cusolver-cu12==11.4.5.107->torch>=1.10.0->accelerate) (12.6.20)\n",
|
163 |
+
"Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from huggingface-hub->accelerate) (2.31.0)\n",
|
164 |
+
"Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub->accelerate) (4.66.4)\n",
|
165 |
+
"Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch>=1.10.0->accelerate) (2.1.5)\n",
|
166 |
+
"Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub->accelerate) (3.3.2)\n",
|
167 |
+
"Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub->accelerate) (3.7)\n",
|
168 |
+
"Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub->accelerate) (2.0.7)\n",
|
169 |
+
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub->accelerate) (2024.7.4)\n",
|
170 |
+
"Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from sympy->torch>=1.10.0->accelerate) (1.3.0)\n",
|
171 |
+
"Requirement already satisfied: safetensors in /usr/local/lib/python3.10/dist-packages (0.4.3)\n",
|
172 |
+
"Requirement already satisfied: spaces in /usr/local/lib/python3.10/dist-packages (0.29.2)\n",
|
173 |
+
"Requirement already satisfied: gradio in /usr/local/lib/python3.10/dist-packages (from spaces) (4.40.0)\n",
|
174 |
+
"Requirement already satisfied: httpx>=0.20 in /usr/local/lib/python3.10/dist-packages (from spaces) (0.27.0)\n",
|
175 |
+
"Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from spaces) (24.1)\n",
|
176 |
+
"Requirement already satisfied: psutil<6,>=2 in /usr/local/lib/python3.10/dist-packages (from spaces) (5.9.5)\n",
|
177 |
+
"Requirement already satisfied: pydantic<3,>=1 in /usr/local/lib/python3.10/dist-packages (from spaces) (2.8.2)\n",
|
178 |
+
"Requirement already satisfied: requests<3.0,>=2.19 in /usr/local/lib/python3.10/dist-packages (from spaces) (2.31.0)\n",
|
179 |
+
"Requirement already satisfied: typing-extensions<5,>=4 in /usr/local/lib/python3.10/dist-packages (from spaces) (4.12.2)\n",
|
180 |
+
"Requirement already satisfied: anyio in /usr/local/lib/python3.10/dist-packages (from httpx>=0.20->spaces) (3.7.1)\n",
|
181 |
+
"Requirement already satisfied: certifi in /usr/local/lib/python3.10/dist-packages (from httpx>=0.20->spaces) (2024.7.4)\n",
|
182 |
+
"Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.10/dist-packages (from httpx>=0.20->spaces) (1.0.5)\n",
|
183 |
+
"Requirement already satisfied: idna in /usr/local/lib/python3.10/dist-packages (from httpx>=0.20->spaces) (3.7)\n",
|
184 |
+
"Requirement already satisfied: sniffio in /usr/local/lib/python3.10/dist-packages (from httpx>=0.20->spaces) (1.3.1)\n",
|
185 |
+
"Requirement already satisfied: h11<0.15,>=0.13 in /usr/local/lib/python3.10/dist-packages (from httpcore==1.*->httpx>=0.20->spaces) (0.14.0)\n",
|
186 |
+
"Requirement already satisfied: annotated-types>=0.4.0 in /usr/local/lib/python3.10/dist-packages (from pydantic<3,>=1->spaces) (0.7.0)\n",
|
187 |
+
"Requirement already satisfied: pydantic-core==2.20.1 in /usr/local/lib/python3.10/dist-packages (from pydantic<3,>=1->spaces) (2.20.1)\n",
|
188 |
+
"Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests<3.0,>=2.19->spaces) (3.3.2)\n",
|
189 |
+
"Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests<3.0,>=2.19->spaces) (2.0.7)\n",
|
190 |
+
"Requirement already satisfied: aiofiles<24.0,>=22.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (23.2.1)\n",
|
191 |
+
"Requirement already satisfied: fastapi in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (0.112.0)\n",
|
192 |
+
"Requirement already satisfied: ffmpy in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (0.4.0)\n",
|
193 |
+
"Requirement already satisfied: gradio-client==1.2.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (1.2.0)\n",
|
194 |
+
"Requirement already satisfied: huggingface-hub>=0.19.3 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (0.23.5)\n",
|
195 |
+
"Requirement already satisfied: importlib-resources<7.0,>=1.3 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (6.4.0)\n",
|
196 |
+
"Requirement already satisfied: jinja2<4.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (3.1.4)\n",
|
197 |
+
"Requirement already satisfied: markupsafe~=2.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (2.1.5)\n",
|
198 |
+
"Requirement already satisfied: matplotlib~=3.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (3.7.1)\n",
|
199 |
+
"Requirement already satisfied: numpy<3.0,>=1.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (1.26.4)\n",
|
200 |
+
"Requirement already satisfied: orjson~=3.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (3.10.6)\n",
|
201 |
+
"Requirement already satisfied: pandas<3.0,>=1.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (2.1.4)\n",
|
202 |
+
"Requirement already satisfied: pillow<11.0,>=8.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (9.4.0)\n",
|
203 |
+
"Requirement already satisfied: pydub in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (0.25.1)\n",
|
204 |
+
"Requirement already satisfied: python-multipart>=0.0.9 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (0.0.9)\n",
|
205 |
+
"Requirement already satisfied: pyyaml<7.0,>=5.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (6.0.1)\n",
|
206 |
+
"Requirement already satisfied: ruff>=0.2.2 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (0.5.6)\n",
|
207 |
+
"Requirement already satisfied: semantic-version~=2.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (2.10.0)\n",
|
208 |
+
"Requirement already satisfied: tomlkit==0.12.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (0.12.0)\n",
|
209 |
+
"Requirement already satisfied: typer<1.0,>=0.12 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (0.12.3)\n",
|
210 |
+
"Requirement already satisfied: uvicorn>=0.14.0 in /usr/local/lib/python3.10/dist-packages (from gradio->spaces) (0.30.5)\n",
|
211 |
+
"Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from gradio-client==1.2.0->gradio->spaces) (2024.6.1)\n",
|
212 |
+
"Requirement already satisfied: websockets<13.0,>=10.0 in /usr/local/lib/python3.10/dist-packages (from gradio-client==1.2.0->gradio->spaces) (12.0)\n",
|
213 |
+
"Requirement already satisfied: exceptiongroup in /usr/local/lib/python3.10/dist-packages (from anyio->httpx>=0.20->spaces) (1.2.2)\n",
|
214 |
+
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.19.3->gradio->spaces) (3.15.4)\n",
|
215 |
+
"Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.19.3->gradio->spaces) (4.66.4)\n",
|
216 |
+
"Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib~=3.0->gradio->spaces) (1.2.1)\n",
|
217 |
+
"Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.10/dist-packages (from matplotlib~=3.0->gradio->spaces) (0.12.1)\n",
|
218 |
+
"Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib~=3.0->gradio->spaces) (4.53.1)\n",
|
219 |
+
"Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib~=3.0->gradio->spaces) (1.4.5)\n",
|
220 |
+
"Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib~=3.0->gradio->spaces) (3.1.2)\n",
|
221 |
+
"Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.10/dist-packages (from matplotlib~=3.0->gradio->spaces) (2.8.2)\n",
|
222 |
+
"Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas<3.0,>=1.0->gradio->spaces) (2024.1)\n",
|
223 |
+
"Requirement already satisfied: tzdata>=2022.1 in /usr/local/lib/python3.10/dist-packages (from pandas<3.0,>=1.0->gradio->spaces) (2024.1)\n",
|
224 |
+
"Requirement already satisfied: click>=8.0.0 in /usr/local/lib/python3.10/dist-packages (from typer<1.0,>=0.12->gradio->spaces) (8.1.7)\n",
|
225 |
+
"Requirement already satisfied: shellingham>=1.3.0 in /usr/local/lib/python3.10/dist-packages (from typer<1.0,>=0.12->gradio->spaces) (1.5.4)\n",
|
226 |
+
"Requirement already satisfied: rich>=10.11.0 in /usr/local/lib/python3.10/dist-packages (from typer<1.0,>=0.12->gradio->spaces) (13.7.1)\n",
|
227 |
+
"Requirement already satisfied: starlette<0.38.0,>=0.37.2 in /usr/local/lib/python3.10/dist-packages (from fastapi->gradio->spaces) (0.37.2)\n",
|
228 |
+
"Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio->spaces) (1.16.0)\n",
|
229 |
+
"Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.10/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio->spaces) (3.0.0)\n",
|
230 |
+
"Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.10/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio->spaces) (2.16.1)\n",
|
231 |
+
"Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.10/dist-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio->spaces) (0.1.2)\n",
|
232 |
+
"Requirement already satisfied: peft in /usr/local/lib/python3.10/dist-packages (0.12.0)\n",
|
233 |
+
"Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from peft) (1.26.4)\n",
|
234 |
+
"Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.10/dist-packages (from peft) (24.1)\n",
|
235 |
+
"Requirement already satisfied: psutil in /usr/local/lib/python3.10/dist-packages (from peft) (5.9.5)\n",
|
236 |
+
"Requirement already satisfied: pyyaml in /usr/local/lib/python3.10/dist-packages (from peft) (6.0.1)\n",
|
237 |
+
"Requirement already satisfied: torch>=1.13.0 in /usr/local/lib/python3.10/dist-packages (from peft) (2.3.1+cu121)\n",
|
238 |
+
"Requirement already satisfied: transformers in /usr/local/lib/python3.10/dist-packages (from peft) (4.43.3)\n",
|
239 |
+
"Requirement already satisfied: tqdm in /usr/local/lib/python3.10/dist-packages (from peft) (4.66.4)\n",
|
240 |
+
"Requirement already satisfied: accelerate>=0.21.0 in /usr/local/lib/python3.10/dist-packages (from peft) (0.32.1)\n",
|
241 |
+
"Requirement already satisfied: safetensors in /usr/local/lib/python3.10/dist-packages (from peft) (0.4.3)\n",
|
242 |
+
"Requirement already satisfied: huggingface-hub>=0.17.0 in /usr/local/lib/python3.10/dist-packages (from peft) (0.23.5)\n",
|
243 |
+
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.17.0->peft) (3.15.4)\n",
|
244 |
+
"Requirement already satisfied: fsspec>=2023.5.0 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.17.0->peft) (2024.6.1)\n",
|
245 |
+
"Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.17.0->peft) (2.31.0)\n",
|
246 |
+
"Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.17.0->peft) (4.12.2)\n",
|
247 |
+
"Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (1.13.1)\n",
|
248 |
+
"Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (3.3)\n",
|
249 |
+
"Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (3.1.4)\n",
|
250 |
+
"Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (12.1.105)\n",
|
251 |
+
"Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (12.1.105)\n",
|
252 |
+
"Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (12.1.105)\n",
|
253 |
+
"Requirement already satisfied: nvidia-cudnn-cu12==8.9.2.26 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (8.9.2.26)\n",
|
254 |
+
"Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (12.1.3.1)\n",
|
255 |
+
"Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (11.0.2.54)\n",
|
256 |
+
"Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (10.3.2.106)\n",
|
257 |
+
"Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (11.4.5.107)\n",
|
258 |
+
"Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (12.1.0.106)\n",
|
259 |
+
"Requirement already satisfied: nvidia-nccl-cu12==2.20.5 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (2.20.5)\n",
|
260 |
+
"Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (12.1.105)\n",
|
261 |
+
"Requirement already satisfied: triton==2.3.1 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.0->peft) (2.3.1)\n",
|
262 |
+
"Requirement already satisfied: nvidia-nvjitlink-cu12 in /usr/local/lib/python3.10/dist-packages (from nvidia-cusolver-cu12==11.4.5.107->torch>=1.13.0->peft) (12.6.20)\n",
|
263 |
+
"Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.10/dist-packages (from transformers->peft) (2024.5.15)\n",
|
264 |
+
"Requirement already satisfied: tokenizers<0.20,>=0.19 in /usr/local/lib/python3.10/dist-packages (from transformers->peft) (0.19.1)\n",
|
265 |
+
"Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch>=1.13.0->peft) (2.1.5)\n",
|
266 |
+
"Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub>=0.17.0->peft) (3.3.2)\n",
|
267 |
+
"Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub>=0.17.0->peft) (3.7)\n",
|
268 |
+
"Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub>=0.17.0->peft) (2.0.7)\n",
|
269 |
+
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub>=0.17.0->peft) (2024.7.4)\n",
|
270 |
+
"Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from sympy->torch>=1.13.0->peft) (1.3.0)\n",
|
271 |
+
"Requirement already satisfied: gradio in /usr/local/lib/python3.10/dist-packages (4.40.0)\n",
|
272 |
+
"Requirement already satisfied: aiofiles<24.0,>=22.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (23.2.1)\n",
|
273 |
+
"Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (3.7.1)\n",
|
274 |
+
"Requirement already satisfied: fastapi in /usr/local/lib/python3.10/dist-packages (from gradio) (0.112.0)\n",
|
275 |
+
"Requirement already satisfied: ffmpy in /usr/local/lib/python3.10/dist-packages (from gradio) (0.4.0)\n",
|
276 |
+
"Requirement already satisfied: gradio-client==1.2.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (1.2.0)\n",
|
277 |
+
"Requirement already satisfied: httpx>=0.24.1 in /usr/local/lib/python3.10/dist-packages (from gradio) (0.27.0)\n",
|
278 |
+
"Requirement already satisfied: huggingface-hub>=0.19.3 in /usr/local/lib/python3.10/dist-packages (from gradio) (0.23.5)\n",
|
279 |
+
"Requirement already satisfied: importlib-resources<7.0,>=1.3 in /usr/local/lib/python3.10/dist-packages (from gradio) (6.4.0)\n",
|
280 |
+
"Requirement already satisfied: jinja2<4.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (3.1.4)\n",
|
281 |
+
"Requirement already satisfied: markupsafe~=2.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (2.1.5)\n",
|
282 |
+
"Requirement already satisfied: matplotlib~=3.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (3.7.1)\n",
|
283 |
+
"Requirement already satisfied: numpy<3.0,>=1.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (1.26.4)\n",
|
284 |
+
"Requirement already satisfied: orjson~=3.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (3.10.6)\n",
|
285 |
+
"Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from gradio) (24.1)\n",
|
286 |
+
"Requirement already satisfied: pandas<3.0,>=1.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (2.1.4)\n",
|
287 |
+
"Requirement already satisfied: pillow<11.0,>=8.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (9.4.0)\n",
|
288 |
+
"Requirement already satisfied: pydantic>=2.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (2.8.2)\n",
|
289 |
+
"Requirement already satisfied: pydub in /usr/local/lib/python3.10/dist-packages (from gradio) (0.25.1)\n",
|
290 |
+
"Requirement already satisfied: python-multipart>=0.0.9 in /usr/local/lib/python3.10/dist-packages (from gradio) (0.0.9)\n",
|
291 |
+
"Requirement already satisfied: pyyaml<7.0,>=5.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (6.0.1)\n",
|
292 |
+
"Requirement already satisfied: ruff>=0.2.2 in /usr/local/lib/python3.10/dist-packages (from gradio) (0.5.6)\n",
|
293 |
+
"Requirement already satisfied: semantic-version~=2.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (2.10.0)\n",
|
294 |
+
"Requirement already satisfied: tomlkit==0.12.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (0.12.0)\n",
|
295 |
+
"Requirement already satisfied: typer<1.0,>=0.12 in /usr/local/lib/python3.10/dist-packages (from gradio) (0.12.3)\n",
|
296 |
+
"Requirement already satisfied: typing-extensions~=4.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (4.12.2)\n",
|
297 |
+
"Requirement already satisfied: urllib3~=2.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (2.0.7)\n",
|
298 |
+
"Requirement already satisfied: uvicorn>=0.14.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (0.30.5)\n",
|
299 |
+
"Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from gradio-client==1.2.0->gradio) (2024.6.1)\n",
|
300 |
+
"Requirement already satisfied: websockets<13.0,>=10.0 in /usr/local/lib/python3.10/dist-packages (from gradio-client==1.2.0->gradio) (12.0)\n",
|
301 |
+
"Requirement already satisfied: idna>=2.8 in /usr/local/lib/python3.10/dist-packages (from anyio<5.0,>=3.0->gradio) (3.7)\n",
|
302 |
+
"Requirement already satisfied: sniffio>=1.1 in /usr/local/lib/python3.10/dist-packages (from anyio<5.0,>=3.0->gradio) (1.3.1)\n",
|
303 |
+
"Requirement already satisfied: exceptiongroup in /usr/local/lib/python3.10/dist-packages (from anyio<5.0,>=3.0->gradio) (1.2.2)\n",
|
304 |
+
"Requirement already satisfied: certifi in /usr/local/lib/python3.10/dist-packages (from httpx>=0.24.1->gradio) (2024.7.4)\n",
|
305 |
+
"Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.10/dist-packages (from httpx>=0.24.1->gradio) (1.0.5)\n",
|
306 |
+
"Requirement already satisfied: h11<0.15,>=0.13 in /usr/local/lib/python3.10/dist-packages (from httpcore==1.*->httpx>=0.24.1->gradio) (0.14.0)\n",
|
307 |
+
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.19.3->gradio) (3.15.4)\n",
|
308 |
+
"Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.19.3->gradio) (2.31.0)\n",
|
309 |
+
"Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.19.3->gradio) (4.66.4)\n",
|
310 |
+
"Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib~=3.0->gradio) (1.2.1)\n",
|
311 |
+
"Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.10/dist-packages (from matplotlib~=3.0->gradio) (0.12.1)\n",
|
312 |
+
"Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib~=3.0->gradio) (4.53.1)\n",
|
313 |
+
"Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib~=3.0->gradio) (1.4.5)\n",
|
314 |
+
"Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib~=3.0->gradio) (3.1.2)\n",
|
315 |
+
"Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.10/dist-packages (from matplotlib~=3.0->gradio) (2.8.2)\n",
|
316 |
+
"Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas<3.0,>=1.0->gradio) (2024.1)\n",
|
317 |
+
"Requirement already satisfied: tzdata>=2022.1 in /usr/local/lib/python3.10/dist-packages (from pandas<3.0,>=1.0->gradio) (2024.1)\n",
|
318 |
+
"Requirement already satisfied: annotated-types>=0.4.0 in /usr/local/lib/python3.10/dist-packages (from pydantic>=2.0->gradio) (0.7.0)\n",
|
319 |
+
"Requirement already satisfied: pydantic-core==2.20.1 in /usr/local/lib/python3.10/dist-packages (from pydantic>=2.0->gradio) (2.20.1)\n",
|
320 |
+
"Requirement already satisfied: click>=8.0.0 in /usr/local/lib/python3.10/dist-packages (from typer<1.0,>=0.12->gradio) (8.1.7)\n",
|
321 |
+
"Requirement already satisfied: shellingham>=1.3.0 in /usr/local/lib/python3.10/dist-packages (from typer<1.0,>=0.12->gradio) (1.5.4)\n",
|
322 |
+
"Requirement already satisfied: rich>=10.11.0 in /usr/local/lib/python3.10/dist-packages (from typer<1.0,>=0.12->gradio) (13.7.1)\n",
|
323 |
+
"Requirement already satisfied: starlette<0.38.0,>=0.37.2 in /usr/local/lib/python3.10/dist-packages (from fastapi->gradio) (0.37.2)\n",
|
324 |
+
"Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio) (1.16.0)\n",
|
325 |
+
"Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.10/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (3.0.0)\n",
|
326 |
+
"Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.10/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (2.16.1)\n",
|
327 |
+
"Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub>=0.19.3->gradio) (3.3.2)\n",
|
328 |
+
"Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.10/dist-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio) (0.1.2)\n"
|
329 |
+
]
|
330 |
+
}
|
331 |
+
]
|
332 |
+
},
|
333 |
+
{
|
334 |
+
"cell_type": "code",
|
335 |
+
"source": [
|
336 |
+
"# Authenticate with Hugging Face\n",
|
337 |
+
"from huggingface_hub import login\n",
|
338 |
+
"\n",
|
339 |
+
"# Log in to Hugging Face using the provided token\n",
|
340 |
+
"hf_token = '------------HF_TOKEN----------------'\n",
|
341 |
+
"login(hf_token)"
|
342 |
+
],
|
343 |
+
"metadata": {
|
344 |
+
"id": "OMTvSTJ17QfL",
|
345 |
+
"outputId": "9b1a6323-2a79-4c72-a76c-cdc990aee344",
|
346 |
+
"colab": {
|
347 |
+
"base_uri": "https://localhost:8080/"
|
348 |
+
}
|
349 |
+
},
|
350 |
+
"execution_count": null,
|
351 |
+
"outputs": [
|
352 |
+
{
|
353 |
+
"output_type": "stream",
|
354 |
+
"name": "stdout",
|
355 |
+
"text": [
|
356 |
+
"The token has not been saved to the git credentials helper. Pass `add_to_git_credential=True` in this function directly or `--add-to-git-credential` if using via `huggingface-cli` if you want to set the git credential as well.\n",
|
357 |
+
"Token is valid (permission: fineGrained).\n",
|
358 |
+
"Your token has been saved to /root/.cache/huggingface/token\n",
|
359 |
+
"Login successful\n"
|
360 |
+
]
|
361 |
+
}
|
362 |
+
]
|
363 |
+
},
|
364 |
+
{
|
365 |
+
"cell_type": "code",
|
366 |
+
"source": [
|
367 |
+
"#!/usr/bin/env python\n",
|
368 |
+
"#patch 1.0()\n",
|
369 |
+
"# Permission is hereby granted, free of charge, to any person obtaining a copy\n",
|
370 |
+
"# of this software and associated documentation files (the \"Software\"), to deal\n",
|
371 |
+
"# in the Software without restriction, including without limitation the rights\n",
|
372 |
+
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n",
|
373 |
+
"# copies of the Software, and to permit persons to whom the Software is\n",
|
374 |
+
"# furnished to do so, subject to the following conditions:\n",
|
375 |
+
"#\n",
|
376 |
+
"# ...\n",
|
377 |
+
"import os\n",
|
378 |
+
"import random\n",
|
379 |
+
"import uuid\n",
|
380 |
+
"from typing import Tuple\n",
|
381 |
+
"import gradio as gr\n",
|
382 |
+
"import numpy as np\n",
|
383 |
+
"from PIL import Image\n",
|
384 |
+
"import spaces\n",
|
385 |
+
"import torch\n",
|
386 |
+
"from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler\n",
|
387 |
+
"\n",
|
388 |
+
"DESCRIPTIONz= \"\"\"## GEN V ⚡\n",
|
389 |
+
"\"\"\"\n",
|
390 |
+
"\n",
|
391 |
+
"def save_image(img):\n",
|
392 |
+
" unique_name = str(uuid.uuid4()) + \".png\"\n",
|
393 |
+
" img.save(unique_name)\n",
|
394 |
+
" return unique_name\n",
|
395 |
+
"\n",
|
396 |
+
"def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:\n",
|
397 |
+
" if randomize_seed:\n",
|
398 |
+
" seed = random.randint(0, MAX_SEED)\n",
|
399 |
+
" return seed\n",
|
400 |
+
"\n",
|
401 |
+
"MAX_SEED = np.iinfo(np.int32).max\n",
|
402 |
+
"\n",
|
403 |
+
"if not torch.cuda.is_available():\n",
|
404 |
+
" DESCRIPTIONz += \"\\n<p>⚠️Running on CPU, This may not work on CPU. If it runs for an extended time or if you encounter errors, try running it on a GPU by duplicating the space using @spaces.GPU(). +import spaces.📍</p>\"\n",
|
405 |
+
"\n",
|
406 |
+
"USE_TORCH_COMPILE = 0\n",
|
407 |
+
"ENABLE_CPU_OFFLOAD = 0\n",
|
408 |
+
"\n",
|
409 |
+
"if torch.cuda.is_available():\n",
|
410 |
+
" pipe = StableDiffusionXLPipeline.from_pretrained(\n",
|
411 |
+
" \"SG161222/RealVisXL_V4.0_Lightning\",\n",
|
412 |
+
" torch_dtype=torch.float16,\n",
|
413 |
+
" use_safetensors=True,\n",
|
414 |
+
" )\n",
|
415 |
+
" pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)\n",
|
416 |
+
"\n",
|
417 |
+
" LORA_OPTIONS = {\n",
|
418 |
+
" \"Realism (face/character)👦🏻\": (\"prithivMLmods/Canopus-Realism-LoRA\", \"Canopus-Realism-LoRA.safetensors\", \"rlms\"),\n",
|
419 |
+
" \"Pixar (art/toons)🙀\": (\"prithivMLmods/Canopus-Pixar-Art\", \"Canopus-Pixar-Art.safetensors\", \"pixar\"),\n",
|
420 |
+
" \"Photoshoot (camera/film)📸\": (\"prithivMLmods/Canopus-Photo-Shoot-Mini-LoRA\", \"Canopus-Photo-Shoot-Mini-LoRA.safetensors\", \"photo\"),\n",
|
421 |
+
" \"Clothing (hoodies/pant/shirts)👔\": (\"prithivMLmods/Canopus-Clothing-Adp-LoRA\", \"Canopus-Dress-Clothing-LoRA.safetensors\", \"clth\"),\n",
|
422 |
+
" \"Interior Architecture (house/hotel)🏠\": (\"prithivMLmods/Canopus-Interior-Architecture-0.1\", \"Canopus-Interior-Architecture-0.1δ.safetensors\", \"arch\"),\n",
|
423 |
+
" \"Fashion Product (wearing/usable)👜\": (\"prithivMLmods/Canopus-Fashion-Product-Dilation\", \"Canopus-Fashion-Product-Dilation.safetensors\", \"fashion\"),\n",
|
424 |
+
" \"Minimalistic Image (minimal/detailed)🏞️\": (\"prithivMLmods/Pegasi-Minimalist-Image-Style\", \"Pegasi-Minimalist-Image-Style.safetensors\", \"minimalist\"),\n",
|
425 |
+
" \"Modern Clothing (trend/new)👕\": (\"prithivMLmods/Canopus-Modern-Clothing-Design\", \"Canopus-Modern-Clothing-Design.safetensors\", \"mdrnclth\"),\n",
|
426 |
+
" \"Animaliea (farm/wild)🫎\": (\"prithivMLmods/Canopus-Animaliea-Artism\", \"Canopus-Animaliea-Artism.safetensors\", \"Animaliea\"),\n",
|
427 |
+
" \"Liquid Wallpaper (minimal/illustration)🖼️\": (\"prithivMLmods/Canopus-Liquid-Wallpaper-Art\", \"Canopus-Liquid-Wallpaper-Minimalize-LoRA.safetensors\", \"liquid\"),\n",
|
428 |
+
" \"Canes Cars (realistic/futurecars)🚘\": (\"prithivMLmods/Canes-Cars-Model-LoRA\", \"Canes-Cars-Model-LoRA.safetensors\", \"car\"),\n",
|
429 |
+
" \"Pencil Art (characteristic/creative)✏️\": (\"prithivMLmods/Canopus-Pencil-Art-LoRA\", \"Canopus-Pencil-Art-LoRA.safetensors\", \"Pencil Art\"),\n",
|
430 |
+
" \"Art Minimalistic (paint/semireal)🎨\": (\"prithivMLmods/Canopus-Art-Medium-LoRA\", \"Canopus-Art-Medium-LoRA.safetensors\", \"mdm\"),\n",
|
431 |
+
"\n",
|
432 |
+
" }\n",
|
433 |
+
"\n",
|
434 |
+
" for model_name, weight_name, adapter_name in LORA_OPTIONS.values():\n",
|
435 |
+
" pipe.load_lora_weights(model_name, weight_name=weight_name, adapter_name=adapter_name)\n",
|
436 |
+
" pipe.to(\"cuda\")\n",
|
437 |
+
"\n",
|
438 |
+
"style_list = [\n",
|
439 |
+
" {\n",
|
440 |
+
" \"name\": \"3840 x 2160\",\n",
|
441 |
+
" \"prompt\": \"hyper-realistic 8K image of {prompt}. ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic\",\n",
|
442 |
+
" \"negative_prompt\": \"cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly\",\n",
|
443 |
+
" },\n",
|
444 |
+
" {\n",
|
445 |
+
" \"name\": \"2560 x 1440\",\n",
|
446 |
+
" \"prompt\": \"hyper-realistic 4K image of {prompt}. ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic\",\n",
|
447 |
+
" \"negative_prompt\": \"cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly\",\n",
|
448 |
+
" },\n",
|
449 |
+
" {\n",
|
450 |
+
" \"name\": \"HD+\",\n",
|
451 |
+
" \"prompt\": \"hyper-realistic 2K image of {prompt}. ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic\",\n",
|
452 |
+
" \"negative_prompt\": \"cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly\",\n",
|
453 |
+
" },\n",
|
454 |
+
" {\n",
|
455 |
+
" \"name\": \"Style Zero\",\n",
|
456 |
+
" \"prompt\": \"{prompt}\",\n",
|
457 |
+
" \"negative_prompt\": \"\",\n",
|
458 |
+
" },\n",
|
459 |
+
"]\n",
|
460 |
+
"\n",
|
461 |
+
"styles = {k[\"name\"]: (k[\"prompt\"], k[\"negative_prompt\"]) for k in style_list}\n",
|
462 |
+
"\n",
|
463 |
+
"DEFAULT_STYLE_NAME = \"3840 x 2160\"\n",
|
464 |
+
"STYLE_NAMES = list(styles.keys())\n",
|
465 |
+
"\n",
|
466 |
+
"def apply_style(style_name: str, positive: str, negative: str = \"\") -> Tuple[str, str]:\n",
|
467 |
+
" if style_name in styles:\n",
|
468 |
+
" p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])\n",
|
469 |
+
" else:\n",
|
470 |
+
" p, n = styles[DEFAULT_STYLE_NAME]\n",
|
471 |
+
"\n",
|
472 |
+
" if not negative:\n",
|
473 |
+
" negative = \"\"\n",
|
474 |
+
" return p.replace(\"{prompt}\", positive), n + negative\n",
|
475 |
+
"\n",
|
476 |
+
"@spaces.GPU(duration=180, enable_queue=True)\n",
|
477 |
+
"def generate(\n",
|
478 |
+
" prompt: str,\n",
|
479 |
+
" negative_prompt: str = \"\",\n",
|
480 |
+
" use_negative_prompt: bool = False,\n",
|
481 |
+
" seed: int = 0,\n",
|
482 |
+
" width: int = 1024,\n",
|
483 |
+
" height: int = 1024,\n",
|
484 |
+
" guidance_scale: float = 3,\n",
|
485 |
+
" randomize_seed: bool = False,\n",
|
486 |
+
" style_name: str = DEFAULT_STYLE_NAME,\n",
|
487 |
+
" lora_model: str = \"Realism (face/character)👦🏻\",\n",
|
488 |
+
" progress=gr.Progress(track_tqdm=True),\n",
|
489 |
+
"):\n",
|
490 |
+
" seed = int(randomize_seed_fn(seed, randomize_seed))\n",
|
491 |
+
"\n",
|
492 |
+
" positive_prompt, effective_negative_prompt = apply_style(style_name, prompt, negative_prompt)\n",
|
493 |
+
"\n",
|
494 |
+
" if not use_negative_prompt:\n",
|
495 |
+
" effective_negative_prompt = \"\" # type: ignore\n",
|
496 |
+
"\n",
|
497 |
+
" model_name, weight_name, adapter_name = LORA_OPTIONS[lora_model]\n",
|
498 |
+
" pipe.set_adapters(adapter_name)\n",
|
499 |
+
"\n",
|
500 |
+
" images = pipe(\n",
|
501 |
+
" prompt=positive_prompt,\n",
|
502 |
+
" negative_prompt=effective_negative_prompt,\n",
|
503 |
+
" width=width,\n",
|
504 |
+
" height=height,\n",
|
505 |
+
" guidance_scale=guidance_scale,\n",
|
506 |
+
" num_inference_steps=20,\n",
|
507 |
+
" num_images_per_prompt=1,\n",
|
508 |
+
" cross_attention_kwargs={\"scale\": 0.65},\n",
|
509 |
+
" output_type=\"pil\",\n",
|
510 |
+
" ).images\n",
|
511 |
+
" image_paths = [save_image(img) for img in images]\n",
|
512 |
+
" return image_paths, seed\n",
|
513 |
+
"\n",
|
514 |
+
"examples = [\n",
|
515 |
+
" \"Realism: Man in the style of dark beige and brown, uhd image, youthful protagonists, nonrepresentational \",\n",
|
516 |
+
" \"Pixar: A young man with light brown wavy hair and light brown eyes sitting in an armchair and looking directly at the camera, pixar style, disney pixar, office background, ultra detailed, 1 man\",\n",
|
517 |
+
" \"Hoodie: Front view, capture a urban style, Superman Hoodie, technical materials, fabric small point label on text Blue theory, the design is minimal, with a raised collar, fabric is a Light yellow, low angle to capture the Hoodies form and detailing, f/5.6 to focus on the hoodies craftsmanship, solid grey background, studio light setting, with batman logo in the chest region of the t-shirt\",\n",
|
518 |
+
"]\n",
|
519 |
+
"\n",
|
520 |
+
"css = '''\n",
|
521 |
+
".gradio-container{max-width: 545px !important}\n",
|
522 |
+
"h1{text-align:center}\n",
|
523 |
+
"footer {\n",
|
524 |
+
" visibility: hidden\n",
|
525 |
+
"}\n",
|
526 |
+
"'''\n",
|
527 |
+
"\n",
|
528 |
+
"\n",
|
529 |
+
"\n",
|
530 |
+
"with gr.Blocks(css=css) as demo:\n",
|
531 |
+
" gr.Markdown(DESCRIPTIONz)\n",
|
532 |
+
" with gr.Group():\n",
|
533 |
+
" with gr.Row():\n",
|
534 |
+
" prompt = gr.Text(\n",
|
535 |
+
" label=\"Prompt\",\n",
|
536 |
+
" show_label=False,\n",
|
537 |
+
" max_lines=1,\n",
|
538 |
+
" placeholder=\"Enter your prompt with resp. tag!\",\n",
|
539 |
+
" container=False,\n",
|
540 |
+
" )\n",
|
541 |
+
" run_button = gr.Button(\"Run\", scale=0)\n",
|
542 |
+
" result = gr.Gallery(label=\"Result\", columns=1, preview=True, show_label=False)\n",
|
543 |
+
"\n",
|
544 |
+
" with gr.Accordion(\"Advanced options\", open=False, visible=False):\n",
|
545 |
+
" use_negative_prompt = gr.Checkbox(label=\"Use negative prompt\", value=True)\n",
|
546 |
+
" negative_prompt = gr.Text(\n",
|
547 |
+
" label=\"Negative prompt\",\n",
|
548 |
+
" lines=4,\n",
|
549 |
+
" max_lines=6,\n",
|
550 |
+
" value=\"(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation\",\n",
|
551 |
+
" placeholder=\"Enter a negative prompt\",\n",
|
552 |
+
" visible=True,\n",
|
553 |
+
" )\n",
|
554 |
+
" seed = gr.Slider(\n",
|
555 |
+
" label=\"Seed\",\n",
|
556 |
+
" minimum=0,\n",
|
557 |
+
" maximum=MAX_SEED,\n",
|
558 |
+
" step=1,\n",
|
559 |
+
" value=0,\n",
|
560 |
+
" visible=True\n",
|
561 |
+
" )\n",
|
562 |
+
" randomize_seed = gr.Checkbox(label=\"Randomize seed\", value=True)\n",
|
563 |
+
"\n",
|
564 |
+
" with gr.Row(visible=True):\n",
|
565 |
+
" width = gr.Slider(\n",
|
566 |
+
" label=\"Width\",\n",
|
567 |
+
" minimum=512,\n",
|
568 |
+
" maximum=2048,\n",
|
569 |
+
" step=8,\n",
|
570 |
+
" value=1024,\n",
|
571 |
+
" )\n",
|
572 |
+
" height = gr.Slider(\n",
|
573 |
+
" label=\"Height\",\n",
|
574 |
+
" minimum=512,\n",
|
575 |
+
" maximum=2048,\n",
|
576 |
+
" step=8,\n",
|
577 |
+
" value=1024,\n",
|
578 |
+
" )\n",
|
579 |
+
"\n",
|
580 |
+
" with gr.Row():\n",
|
581 |
+
" guidance_scale = gr.Slider(\n",
|
582 |
+
" label=\"Guidance Scale\",\n",
|
583 |
+
" minimum=0.1,\n",
|
584 |
+
" maximum=20.0,\n",
|
585 |
+
" step=0.1,\n",
|
586 |
+
" value=3.0,\n",
|
587 |
+
" )\n",
|
588 |
+
"\n",
|
589 |
+
" style_selection = gr.Radio(\n",
|
590 |
+
" show_label=True,\n",
|
591 |
+
" container=True,\n",
|
592 |
+
" interactive=True,\n",
|
593 |
+
" choices=STYLE_NAMES,\n",
|
594 |
+
" value=DEFAULT_STYLE_NAME,\n",
|
595 |
+
" label=\"Quality Style\",\n",
|
596 |
+
" )\n",
|
597 |
+
"\n",
|
598 |
+
" with gr.Row(visible=True):\n",
|
599 |
+
" model_choice = gr.Dropdown(\n",
|
600 |
+
" label=\"LoRA Selection\",\n",
|
601 |
+
" choices=list(LORA_OPTIONS.keys()),\n",
|
602 |
+
" value=\"Realism (face/character)👦🏻\"\n",
|
603 |
+
" )\n",
|
604 |
+
"\n",
|
605 |
+
" gr.Examples(\n",
|
606 |
+
" examples=examples,\n",
|
607 |
+
" inputs=prompt,\n",
|
608 |
+
" outputs=[result, seed],\n",
|
609 |
+
" fn=generate,\n",
|
610 |
+
" cache_examples=False,\n",
|
611 |
+
" )\n",
|
612 |
+
"\n",
|
613 |
+
" use_negative_prompt.change(\n",
|
614 |
+
" fn=lambda x: gr.update(visible=x),\n",
|
615 |
+
" inputs=use_negative_prompt,\n",
|
616 |
+
" outputs=negative_prompt,\n",
|
617 |
+
" api_name=False,\n",
|
618 |
+
" )\n",
|
619 |
+
"\n",
|
620 |
+
" gr.on(\n",
|
621 |
+
" triggers=[\n",
|
622 |
+
" prompt.submit,\n",
|
623 |
+
" negative_prompt.submit,\n",
|
624 |
+
" run_button.click,\n",
|
625 |
+
" ],\n",
|
626 |
+
" fn=generate,\n",
|
627 |
+
" inputs=[\n",
|
628 |
+
" prompt,\n",
|
629 |
+
" negative_prompt,\n",
|
630 |
+
" use_negative_prompt,\n",
|
631 |
+
" seed,\n",
|
632 |
+
" width,\n",
|
633 |
+
" height,\n",
|
634 |
+
" guidance_scale,\n",
|
635 |
+
" randomize_seed,\n",
|
636 |
+
" style_selection,\n",
|
637 |
+
" model_choice,\n",
|
638 |
+
" ],\n",
|
639 |
+
" outputs=[result, seed],\n",
|
640 |
+
" api_name=\"run\",\n",
|
641 |
+
" )\n",
|
642 |
+
"\n",
|
643 |
+
"\n",
|
644 |
+
"\n",
|
645 |
+
" gr.Markdown(\"⚡Models used in the playground [[Lightning]](https://huggingface.co/SG161222/RealVisXL_V4.0_Lightning) & LoRA from [[LoRA]](https://huggingface.co/collections/prithivMLmods/dev-models-667803a6d5ac75b59110e527) for image generation. The specific LoRA in the space that requires appropriate trigger words brings good results. The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.\")\n",
|
646 |
+
" gr.Markdown(\"⚡This is the demo space for generating images using Stable Diffusion with quality styles, different LoRA models and types. Try the sample prompts to generate higher quality images. Try the sample prompts for generating higher quality images.<a href='https://huggingface.co/spaces/prithivMLmods/Top-Prompt-Collection' target='_blank'>Try prompts</a>.\")\n",
|
647 |
+
" gr.Markdown(\"⚡Make sure that the prompts passed meet the trigger word conditions and are well-detailed. This space is for educational purposes only; using it productively is meant for your own knowledge.\")\n",
|
648 |
+
" gr.Markdown(\"⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.\")\n",
|
649 |
+
"\n",
|
650 |
+
"if __name__ == \"__main__\":\n",
|
651 |
+
" demo.queue(max_size=30).launch()"
|
652 |
+
],
|
653 |
+
"metadata": {
|
654 |
+
"id": "cM-VOi-y7Ui6",
|
655 |
+
"outputId": "99d44479-cc15-41c7-d395-9c5fd11c19ac",
|
656 |
+
"colab": {
|
657 |
+
"base_uri": "https://localhost:8080/",
|
658 |
+
"height": 821,
|
659 |
+
"referenced_widgets": [
|
660 |
+
"0a31fe4e80644e0eac8112598de941ee",
|
661 |
+
"d15e86362fa54a31aa5c11f2aa813d2d",
|
662 |
+
"50afcdfbc7254e7e8f18e30739963b2f",
|
663 |
+
"b06404891e1645d7be669746da65450e",
|
664 |
+
"8aa7d0ea1c594d7f936e4480bdddbbd5",
|
665 |
+
"296adfb9ec0d4b388484abebf4a8b57d",
|
666 |
+
"fce9598a0b6c4d96b153c81bb8059bea",
|
667 |
+
"80fc908691ae4ca49624b3d7031af535",
|
668 |
+
"e58a807ba76a4e4a9a49430da4179e1d",
|
669 |
+
"160de00af9e64ab09dc1e91d7b97affb",
|
670 |
+
"d28d39a7a0a54f7f8fbcb90e6ae723b2"
|
671 |
+
]
|
672 |
+
}
|
673 |
+
},
|
674 |
+
"execution_count": null,
|
675 |
+
"outputs": [
|
676 |
+
{
|
677 |
+
"output_type": "stream",
|
678 |
+
"name": "stderr",
|
679 |
+
"text": [
|
680 |
+
"/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_token.py:89: UserWarning: \n",
|
681 |
+
"The secret `HF_TOKEN` does not exist in your Colab secrets.\n",
|
682 |
+
"To authenticate with the Hugging Face Hub, create a token in your settings tab (https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session.\n",
|
683 |
+
"You will be able to reuse this secret in all of your notebooks.\n",
|
684 |
+
"Please note that authentication is recommended but still optional to access public models or datasets.\n",
|
685 |
+
" warnings.warn(\n"
|
686 |
+
]
|
687 |
+
},
|
688 |
+
{
|
689 |
+
"output_type": "display_data",
|
690 |
+
"data": {
|
691 |
+
"text/plain": [
|
692 |
+
"Loading pipeline components...: 0%| | 0/7 [00:00<?, ?it/s]"
|
693 |
+
],
|
694 |
+
"application/vnd.jupyter.widget-view+json": {
|
695 |
+
"version_major": 2,
|
696 |
+
"version_minor": 0,
|
697 |
+
"model_id": "0a31fe4e80644e0eac8112598de941ee"
|
698 |
+
}
|
699 |
+
},
|
700 |
+
"metadata": {}
|
701 |
+
},
|
702 |
+
{
|
703 |
+
"output_type": "stream",
|
704 |
+
"name": "stderr",
|
705 |
+
"text": [
|
706 |
+
"/usr/local/lib/python3.10/dist-packages/spaces/zero/decorator.py:72: UserWarning: `enable_queue` parameter is now ignored and always set to `True`\n",
|
707 |
+
" warnings.warn(\"`enable_queue` parameter is now ignored and always set to `True`\")\n"
|
708 |
+
]
|
709 |
+
},
|
710 |
+
{
|
711 |
+
"output_type": "stream",
|
712 |
+
"name": "stdout",
|
713 |
+
"text": [
|
714 |
+
"Setting queue=True in a Colab notebook requires sharing enabled. Setting `share=True` (you can turn this off by setting `share=False` in `launch()` explicitly).\n",
|
715 |
+
"\n",
|
716 |
+
"Colab notebook detected. To show errors in colab notebook, set debug=True in launch()\n",
|
717 |
+
"Running on public URL: https://eeefa56fa466ed4134.gradio.live\n",
|
718 |
+
"\n",
|
719 |
+
"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"
|
720 |
+
]
|
721 |
+
},
|
722 |
+
{
|
723 |
+
"output_type": "display_data",
|
724 |
+
"data": {
|
725 |
+
"text/plain": [
|
726 |
+
"<IPython.core.display.HTML object>"
|
727 |
+
],
|
728 |
+
"text/html": [
|
729 |
+
"<div><iframe src=\"https://eeefa56fa466ed4134.gradio.live\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
|
730 |
+
]
|
731 |
+
},
|
732 |
+
"metadata": {}
|
733 |
+
}
|
734 |
+
]
|
735 |
+
}
|
736 |
+
],
|
737 |
+
"metadata": {
|
738 |
+
"colab": {
|
739 |
+
"provenance": [],
|
740 |
+
"gpuType": "T4",
|
741 |
+
"toc_visible": true
|
742 |
+
},
|
743 |
+
"kernelspec": {
|
744 |
+
"display_name": "Python 3",
|
745 |
+
"name": "python3"
|
746 |
+
},
|
747 |
+
"accelerator": "GPU",
|
748 |
+
"widgets": {
|
749 |
+
"application/vnd.jupyter.widget-state+json": {
|
750 |
+
"0a31fe4e80644e0eac8112598de941ee": {
|
751 |
+
"model_module": "@jupyter-widgets/controls",
|
752 |
+
"model_name": "HBoxModel",
|
753 |
+
"model_module_version": "1.5.0",
|
754 |
+
"state": {
|
755 |
+
"_dom_classes": [],
|
756 |
+
"_model_module": "@jupyter-widgets/controls",
|
757 |
+
"_model_module_version": "1.5.0",
|
758 |
+
"_model_name": "HBoxModel",
|
759 |
+
"_view_count": null,
|
760 |
+
"_view_module": "@jupyter-widgets/controls",
|
761 |
+
"_view_module_version": "1.5.0",
|
762 |
+
"_view_name": "HBoxView",
|
763 |
+
"box_style": "",
|
764 |
+
"children": [
|
765 |
+
"IPY_MODEL_d15e86362fa54a31aa5c11f2aa813d2d",
|
766 |
+
"IPY_MODEL_50afcdfbc7254e7e8f18e30739963b2f",
|
767 |
+
"IPY_MODEL_b06404891e1645d7be669746da65450e"
|
768 |
+
],
|
769 |
+
"layout": "IPY_MODEL_8aa7d0ea1c594d7f936e4480bdddbbd5"
|
770 |
+
}
|
771 |
+
},
|
772 |
+
"d15e86362fa54a31aa5c11f2aa813d2d": {
|
773 |
+
"model_module": "@jupyter-widgets/controls",
|
774 |
+
"model_name": "HTMLModel",
|
775 |
+
"model_module_version": "1.5.0",
|
776 |
+
"state": {
|
777 |
+
"_dom_classes": [],
|
778 |
+
"_model_module": "@jupyter-widgets/controls",
|
779 |
+
"_model_module_version": "1.5.0",
|
780 |
+
"_model_name": "HTMLModel",
|
781 |
+
"_view_count": null,
|
782 |
+
"_view_module": "@jupyter-widgets/controls",
|
783 |
+
"_view_module_version": "1.5.0",
|
784 |
+
"_view_name": "HTMLView",
|
785 |
+
"description": "",
|
786 |
+
"description_tooltip": null,
|
787 |
+
"layout": "IPY_MODEL_296adfb9ec0d4b388484abebf4a8b57d",
|
788 |
+
"placeholder": "",
|
789 |
+
"style": "IPY_MODEL_fce9598a0b6c4d96b153c81bb8059bea",
|
790 |
+
"value": "Loading pipeline components...: 100%"
|
791 |
+
}
|
792 |
+
},
|
793 |
+
"50afcdfbc7254e7e8f18e30739963b2f": {
|
794 |
+
"model_module": "@jupyter-widgets/controls",
|
795 |
+
"model_name": "FloatProgressModel",
|
796 |
+
"model_module_version": "1.5.0",
|
797 |
+
"state": {
|
798 |
+
"_dom_classes": [],
|
799 |
+
"_model_module": "@jupyter-widgets/controls",
|
800 |
+
"_model_module_version": "1.5.0",
|
801 |
+
"_model_name": "FloatProgressModel",
|
802 |
+
"_view_count": null,
|
803 |
+
"_view_module": "@jupyter-widgets/controls",
|
804 |
+
"_view_module_version": "1.5.0",
|
805 |
+
"_view_name": "ProgressView",
|
806 |
+
"bar_style": "success",
|
807 |
+
"description": "",
|
808 |
+
"description_tooltip": null,
|
809 |
+
"layout": "IPY_MODEL_80fc908691ae4ca49624b3d7031af535",
|
810 |
+
"max": 7,
|
811 |
+
"min": 0,
|
812 |
+
"orientation": "horizontal",
|
813 |
+
"style": "IPY_MODEL_e58a807ba76a4e4a9a49430da4179e1d",
|
814 |
+
"value": 7
|
815 |
+
}
|
816 |
+
},
|
817 |
+
"b06404891e1645d7be669746da65450e": {
|
818 |
+
"model_module": "@jupyter-widgets/controls",
|
819 |
+
"model_name": "HTMLModel",
|
820 |
+
"model_module_version": "1.5.0",
|
821 |
+
"state": {
|
822 |
+
"_dom_classes": [],
|
823 |
+
"_model_module": "@jupyter-widgets/controls",
|
824 |
+
"_model_module_version": "1.5.0",
|
825 |
+
"_model_name": "HTMLModel",
|
826 |
+
"_view_count": null,
|
827 |
+
"_view_module": "@jupyter-widgets/controls",
|
828 |
+
"_view_module_version": "1.5.0",
|
829 |
+
"_view_name": "HTMLView",
|
830 |
+
"description": "",
|
831 |
+
"description_tooltip": null,
|
832 |
+
"layout": "IPY_MODEL_160de00af9e64ab09dc1e91d7b97affb",
|
833 |
+
"placeholder": "",
|
834 |
+
"style": "IPY_MODEL_d28d39a7a0a54f7f8fbcb90e6ae723b2",
|
835 |
+
"value": " 7/7 [01:07<00:00, 4.29s/it]"
|
836 |
+
}
|
837 |
+
},
|
838 |
+
"8aa7d0ea1c594d7f936e4480bdddbbd5": {
|
839 |
+
"model_module": "@jupyter-widgets/base",
|
840 |
+
"model_name": "LayoutModel",
|
841 |
+
"model_module_version": "1.2.0",
|
842 |
+
"state": {
|
843 |
+
"_model_module": "@jupyter-widgets/base",
|
844 |
+
"_model_module_version": "1.2.0",
|
845 |
+
"_model_name": "LayoutModel",
|
846 |
+
"_view_count": null,
|
847 |
+
"_view_module": "@jupyter-widgets/base",
|
848 |
+
"_view_module_version": "1.2.0",
|
849 |
+
"_view_name": "LayoutView",
|
850 |
+
"align_content": null,
|
851 |
+
"align_items": null,
|
852 |
+
"align_self": null,
|
853 |
+
"border": null,
|
854 |
+
"bottom": null,
|
855 |
+
"display": null,
|
856 |
+
"flex": null,
|
857 |
+
"flex_flow": null,
|
858 |
+
"grid_area": null,
|
859 |
+
"grid_auto_columns": null,
|
860 |
+
"grid_auto_flow": null,
|
861 |
+
"grid_auto_rows": null,
|
862 |
+
"grid_column": null,
|
863 |
+
"grid_gap": null,
|
864 |
+
"grid_row": null,
|
865 |
+
"grid_template_areas": null,
|
866 |
+
"grid_template_columns": null,
|
867 |
+
"grid_template_rows": null,
|
868 |
+
"height": null,
|
869 |
+
"justify_content": null,
|
870 |
+
"justify_items": null,
|
871 |
+
"left": null,
|
872 |
+
"margin": null,
|
873 |
+
"max_height": null,
|
874 |
+
"max_width": null,
|
875 |
+
"min_height": null,
|
876 |
+
"min_width": null,
|
877 |
+
"object_fit": null,
|
878 |
+
"object_position": null,
|
879 |
+
"order": null,
|
880 |
+
"overflow": null,
|
881 |
+
"overflow_x": null,
|
882 |
+
"overflow_y": null,
|
883 |
+
"padding": null,
|
884 |
+
"right": null,
|
885 |
+
"top": null,
|
886 |
+
"visibility": null,
|
887 |
+
"width": null
|
888 |
+
}
|
889 |
+
},
|
890 |
+
"296adfb9ec0d4b388484abebf4a8b57d": {
|
891 |
+
"model_module": "@jupyter-widgets/base",
|
892 |
+
"model_name": "LayoutModel",
|
893 |
+
"model_module_version": "1.2.0",
|
894 |
+
"state": {
|
895 |
+
"_model_module": "@jupyter-widgets/base",
|
896 |
+
"_model_module_version": "1.2.0",
|
897 |
+
"_model_name": "LayoutModel",
|
898 |
+
"_view_count": null,
|
899 |
+
"_view_module": "@jupyter-widgets/base",
|
900 |
+
"_view_module_version": "1.2.0",
|
901 |
+
"_view_name": "LayoutView",
|
902 |
+
"align_content": null,
|
903 |
+
"align_items": null,
|
904 |
+
"align_self": null,
|
905 |
+
"border": null,
|
906 |
+
"bottom": null,
|
907 |
+
"display": null,
|
908 |
+
"flex": null,
|
909 |
+
"flex_flow": null,
|
910 |
+
"grid_area": null,
|
911 |
+
"grid_auto_columns": null,
|
912 |
+
"grid_auto_flow": null,
|
913 |
+
"grid_auto_rows": null,
|
914 |
+
"grid_column": null,
|
915 |
+
"grid_gap": null,
|
916 |
+
"grid_row": null,
|
917 |
+
"grid_template_areas": null,
|
918 |
+
"grid_template_columns": null,
|
919 |
+
"grid_template_rows": null,
|
920 |
+
"height": null,
|
921 |
+
"justify_content": null,
|
922 |
+
"justify_items": null,
|
923 |
+
"left": null,
|
924 |
+
"margin": null,
|
925 |
+
"max_height": null,
|
926 |
+
"max_width": null,
|
927 |
+
"min_height": null,
|
928 |
+
"min_width": null,
|
929 |
+
"object_fit": null,
|
930 |
+
"object_position": null,
|
931 |
+
"order": null,
|
932 |
+
"overflow": null,
|
933 |
+
"overflow_x": null,
|
934 |
+
"overflow_y": null,
|
935 |
+
"padding": null,
|
936 |
+
"right": null,
|
937 |
+
"top": null,
|
938 |
+
"visibility": null,
|
939 |
+
"width": null
|
940 |
+
}
|
941 |
+
},
|
942 |
+
"fce9598a0b6c4d96b153c81bb8059bea": {
|
943 |
+
"model_module": "@jupyter-widgets/controls",
|
944 |
+
"model_name": "DescriptionStyleModel",
|
945 |
+
"model_module_version": "1.5.0",
|
946 |
+
"state": {
|
947 |
+
"_model_module": "@jupyter-widgets/controls",
|
948 |
+
"_model_module_version": "1.5.0",
|
949 |
+
"_model_name": "DescriptionStyleModel",
|
950 |
+
"_view_count": null,
|
951 |
+
"_view_module": "@jupyter-widgets/base",
|
952 |
+
"_view_module_version": "1.2.0",
|
953 |
+
"_view_name": "StyleView",
|
954 |
+
"description_width": ""
|
955 |
+
}
|
956 |
+
},
|
957 |
+
"80fc908691ae4ca49624b3d7031af535": {
|
958 |
+
"model_module": "@jupyter-widgets/base",
|
959 |
+
"model_name": "LayoutModel",
|
960 |
+
"model_module_version": "1.2.0",
|
961 |
+
"state": {
|
962 |
+
"_model_module": "@jupyter-widgets/base",
|
963 |
+
"_model_module_version": "1.2.0",
|
964 |
+
"_model_name": "LayoutModel",
|
965 |
+
"_view_count": null,
|
966 |
+
"_view_module": "@jupyter-widgets/base",
|
967 |
+
"_view_module_version": "1.2.0",
|
968 |
+
"_view_name": "LayoutView",
|
969 |
+
"align_content": null,
|
970 |
+
"align_items": null,
|
971 |
+
"align_self": null,
|
972 |
+
"border": null,
|
973 |
+
"bottom": null,
|
974 |
+
"display": null,
|
975 |
+
"flex": null,
|
976 |
+
"flex_flow": null,
|
977 |
+
"grid_area": null,
|
978 |
+
"grid_auto_columns": null,
|
979 |
+
"grid_auto_flow": null,
|
980 |
+
"grid_auto_rows": null,
|
981 |
+
"grid_column": null,
|
982 |
+
"grid_gap": null,
|
983 |
+
"grid_row": null,
|
984 |
+
"grid_template_areas": null,
|
985 |
+
"grid_template_columns": null,
|
986 |
+
"grid_template_rows": null,
|
987 |
+
"height": null,
|
988 |
+
"justify_content": null,
|
989 |
+
"justify_items": null,
|
990 |
+
"left": null,
|
991 |
+
"margin": null,
|
992 |
+
"max_height": null,
|
993 |
+
"max_width": null,
|
994 |
+
"min_height": null,
|
995 |
+
"min_width": null,
|
996 |
+
"object_fit": null,
|
997 |
+
"object_position": null,
|
998 |
+
"order": null,
|
999 |
+
"overflow": null,
|
1000 |
+
"overflow_x": null,
|
1001 |
+
"overflow_y": null,
|
1002 |
+
"padding": null,
|
1003 |
+
"right": null,
|
1004 |
+
"top": null,
|
1005 |
+
"visibility": null,
|
1006 |
+
"width": null
|
1007 |
+
}
|
1008 |
+
},
|
1009 |
+
"e58a807ba76a4e4a9a49430da4179e1d": {
|
1010 |
+
"model_module": "@jupyter-widgets/controls",
|
1011 |
+
"model_name": "ProgressStyleModel",
|
1012 |
+
"model_module_version": "1.5.0",
|
1013 |
+
"state": {
|
1014 |
+
"_model_module": "@jupyter-widgets/controls",
|
1015 |
+
"_model_module_version": "1.5.0",
|
1016 |
+
"_model_name": "ProgressStyleModel",
|
1017 |
+
"_view_count": null,
|
1018 |
+
"_view_module": "@jupyter-widgets/base",
|
1019 |
+
"_view_module_version": "1.2.0",
|
1020 |
+
"_view_name": "StyleView",
|
1021 |
+
"bar_color": null,
|
1022 |
+
"description_width": ""
|
1023 |
+
}
|
1024 |
+
},
|
1025 |
+
"160de00af9e64ab09dc1e91d7b97affb": {
|
1026 |
+
"model_module": "@jupyter-widgets/base",
|
1027 |
+
"model_name": "LayoutModel",
|
1028 |
+
"model_module_version": "1.2.0",
|
1029 |
+
"state": {
|
1030 |
+
"_model_module": "@jupyter-widgets/base",
|
1031 |
+
"_model_module_version": "1.2.0",
|
1032 |
+
"_model_name": "LayoutModel",
|
1033 |
+
"_view_count": null,
|
1034 |
+
"_view_module": "@jupyter-widgets/base",
|
1035 |
+
"_view_module_version": "1.2.0",
|
1036 |
+
"_view_name": "LayoutView",
|
1037 |
+
"align_content": null,
|
1038 |
+
"align_items": null,
|
1039 |
+
"align_self": null,
|
1040 |
+
"border": null,
|
1041 |
+
"bottom": null,
|
1042 |
+
"display": null,
|
1043 |
+
"flex": null,
|
1044 |
+
"flex_flow": null,
|
1045 |
+
"grid_area": null,
|
1046 |
+
"grid_auto_columns": null,
|
1047 |
+
"grid_auto_flow": null,
|
1048 |
+
"grid_auto_rows": null,
|
1049 |
+
"grid_column": null,
|
1050 |
+
"grid_gap": null,
|
1051 |
+
"grid_row": null,
|
1052 |
+
"grid_template_areas": null,
|
1053 |
+
"grid_template_columns": null,
|
1054 |
+
"grid_template_rows": null,
|
1055 |
+
"height": null,
|
1056 |
+
"justify_content": null,
|
1057 |
+
"justify_items": null,
|
1058 |
+
"left": null,
|
1059 |
+
"margin": null,
|
1060 |
+
"max_height": null,
|
1061 |
+
"max_width": null,
|
1062 |
+
"min_height": null,
|
1063 |
+
"min_width": null,
|
1064 |
+
"object_fit": null,
|
1065 |
+
"object_position": null,
|
1066 |
+
"order": null,
|
1067 |
+
"overflow": null,
|
1068 |
+
"overflow_x": null,
|
1069 |
+
"overflow_y": null,
|
1070 |
+
"padding": null,
|
1071 |
+
"right": null,
|
1072 |
+
"top": null,
|
1073 |
+
"visibility": null,
|
1074 |
+
"width": null
|
1075 |
+
}
|
1076 |
+
},
|
1077 |
+
"d28d39a7a0a54f7f8fbcb90e6ae723b2": {
|
1078 |
+
"model_module": "@jupyter-widgets/controls",
|
1079 |
+
"model_name": "DescriptionStyleModel",
|
1080 |
+
"model_module_version": "1.5.0",
|
1081 |
+
"state": {
|
1082 |
+
"_model_module": "@jupyter-widgets/controls",
|
1083 |
+
"_model_module_version": "1.5.0",
|
1084 |
+
"_model_name": "DescriptionStyleModel",
|
1085 |
+
"_view_count": null,
|
1086 |
+
"_view_module": "@jupyter-widgets/base",
|
1087 |
+
"_view_module_version": "1.2.0",
|
1088 |
+
"_view_name": "StyleView",
|
1089 |
+
"description_width": ""
|
1090 |
+
}
|
1091 |
+
}
|
1092 |
+
}
|
1093 |
+
}
|
1094 |
+
},
|
1095 |
+
"nbformat": 4,
|
1096 |
+
"nbformat_minor": 0
|
1097 |
+
}
|