{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.10","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"!git clone https://github.com/huggingface/diffusers","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-06-09T03:52:16.658520Z","iopub.execute_input":"2023-06-09T03:52:16.659063Z","iopub.status.idle":"2023-06-09T03:52:21.446442Z","shell.execute_reply.started":"2023-06-09T03:52:16.659030Z","shell.execute_reply":"2023-06-09T03:52:21.445336Z"},"trusted":true},"execution_count":1,"outputs":[{"name":"stdout","text":"Cloning into 'diffusers'...\nremote: Enumerating objects: 26997, done.\u001b[K\nremote: Counting objects: 100% (561/561), done.\u001b[K\nremote: Compressing objects: 100% (261/261), done.\u001b[K\nremote: Total 26997 (delta 326), reused 442 (delta 275), pack-reused 26436\u001b[K\nReceiving objects: 100% (26997/26997), 18.55 MiB | 11.95 MiB/s, done.\nResolving deltas: 100% (19614/19614), done.\n","output_type":"stream"}]},{"cell_type":"code","source":"cd diffusers","metadata":{"execution":{"iopub.status.busy":"2023-06-09T03:52:21.448687Z","iopub.execute_input":"2023-06-09T03:52:21.449208Z","iopub.status.idle":"2023-06-09T03:52:21.458844Z","shell.execute_reply.started":"2023-06-09T03:52:21.449150Z","shell.execute_reply":"2023-06-09T03:52:21.457565Z"},"trusted":true},"execution_count":2,"outputs":[{"name":"stdout","text":"/kaggle/working/diffusers\n","output_type":"stream"}]},{"cell_type":"code","source":"!pip install -e .","metadata":{"execution":{"iopub.status.busy":"2023-06-09T03:52:21.460851Z","iopub.execute_input":"2023-06-09T03:52:21.461343Z","iopub.status.idle":"2023-06-09T03:52:46.431633Z","shell.execute_reply.started":"2023-06-09T03:52:21.461310Z","shell.execute_reply":"2023-06-09T03:52:46.430437Z"},"trusted":true},"execution_count":3,"outputs":[{"name":"stdout","text":"Obtaining file:///kaggle/working/diffusers\n Installing build dependencies ... \u001b[?25ldone\n\u001b[?25h Checking if build backend supports build_editable ... \u001b[?25ldone\n\u001b[?25h Getting requirements to build editable ... \u001b[?25ldone\n\u001b[?25h Preparing editable metadata (pyproject.toml) ... \u001b[?25ldone\n\u001b[?25hRequirement already satisfied: importlib-metadata in /opt/conda/lib/python3.10/site-packages (from diffusers==0.18.0.dev0) (5.2.0)\nRequirement already satisfied: filelock in /opt/conda/lib/python3.10/site-packages (from diffusers==0.18.0.dev0) (3.12.0)\nRequirement already satisfied: huggingface-hub>=0.13.2 in /opt/conda/lib/python3.10/site-packages (from diffusers==0.18.0.dev0) (0.14.1)\nRequirement already satisfied: numpy in /opt/conda/lib/python3.10/site-packages (from diffusers==0.18.0.dev0) (1.23.5)\nRequirement already satisfied: regex!=2019.12.17 in /opt/conda/lib/python3.10/site-packages (from diffusers==0.18.0.dev0) (2023.5.5)\nRequirement already satisfied: requests in /opt/conda/lib/python3.10/site-packages (from diffusers==0.18.0.dev0) (2.28.2)\nRequirement already satisfied: Pillow in /opt/conda/lib/python3.10/site-packages (from diffusers==0.18.0.dev0) (9.5.0)\nRequirement already satisfied: fsspec in /opt/conda/lib/python3.10/site-packages (from huggingface-hub>=0.13.2->diffusers==0.18.0.dev0) (2023.5.0)\nRequirement already satisfied: tqdm>=4.42.1 in /opt/conda/lib/python3.10/site-packages (from huggingface-hub>=0.13.2->diffusers==0.18.0.dev0) (4.64.1)\nRequirement already satisfied: pyyaml>=5.1 in /opt/conda/lib/python3.10/site-packages (from huggingface-hub>=0.13.2->diffusers==0.18.0.dev0) (5.4.1)\nRequirement already satisfied: typing-extensions>=3.7.4.3 in /opt/conda/lib/python3.10/site-packages (from huggingface-hub>=0.13.2->diffusers==0.18.0.dev0) (4.5.0)\nRequirement already satisfied: packaging>=20.9 in /opt/conda/lib/python3.10/site-packages (from huggingface-hub>=0.13.2->diffusers==0.18.0.dev0) (21.3)\nRequirement already satisfied: zipp>=0.5 in /opt/conda/lib/python3.10/site-packages (from importlib-metadata->diffusers==0.18.0.dev0) (3.15.0)\nRequirement already satisfied: charset-normalizer<4,>=2 in /opt/conda/lib/python3.10/site-packages (from requests->diffusers==0.18.0.dev0) (2.1.1)\nRequirement already satisfied: idna<4,>=2.5 in /opt/conda/lib/python3.10/site-packages (from requests->diffusers==0.18.0.dev0) (3.4)\nRequirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.10/site-packages (from requests->diffusers==0.18.0.dev0) (1.26.15)\nRequirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.10/site-packages (from requests->diffusers==0.18.0.dev0) (2023.5.7)\nRequirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /opt/conda/lib/python3.10/site-packages (from packaging>=20.9->huggingface-hub>=0.13.2->diffusers==0.18.0.dev0) (3.0.9)\nBuilding wheels for collected packages: diffusers\n Building editable for diffusers (pyproject.toml) ... \u001b[?25ldone\n\u001b[?25h Created wheel for diffusers: filename=diffusers-0.18.0.dev0-0.editable-py3-none-any.whl size=10525 sha256=7f271941268af79a74c9c6bad137cf04f88ec0c0bfb331ea0cc91b33d9bbf901\n Stored in directory: /tmp/pip-ephem-wheel-cache-7s3q5gp5/wheels/f5/3d/4b/8e63ecf8f8467b91f49c2a926abe66393983fca5c47830e6e6\nSuccessfully built diffusers\nInstalling collected packages: diffusers\nSuccessfully installed diffusers-0.18.0.dev0\n\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n\u001b[0m","output_type":"stream"}]},{"cell_type":"code","source":"cd examples/controlnet","metadata":{"execution":{"iopub.status.busy":"2023-06-09T03:52:46.435517Z","iopub.execute_input":"2023-06-09T03:52:46.435868Z","iopub.status.idle":"2023-06-09T03:52:46.445004Z","shell.execute_reply.started":"2023-06-09T03:52:46.435838Z","shell.execute_reply":"2023-06-09T03:52:46.443930Z"},"trusted":true},"execution_count":4,"outputs":[{"name":"stdout","text":"/kaggle/working/diffusers/examples/controlnet\n","output_type":"stream"}]},{"cell_type":"code","source":"!pip install -r requirements.txt","metadata":{"execution":{"iopub.status.busy":"2023-06-09T03:52:46.446534Z","iopub.execute_input":"2023-06-09T03:52:46.447011Z","iopub.status.idle":"2023-06-09T03:52:58.612309Z","shell.execute_reply.started":"2023-06-09T03:52:46.446980Z","shell.execute_reply":"2023-06-09T03:52:58.611156Z"},"trusted":true},"execution_count":5,"outputs":[{"name":"stdout","text":"Collecting accelerate>=0.16.0 (from -r requirements.txt (line 1))\n Downloading accelerate-0.20.3-py3-none-any.whl (227 kB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m227.6/227.6 kB\u001b[0m \u001b[31m9.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hRequirement already satisfied: torchvision in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (0.15.1)\nRequirement already satisfied: transformers>=4.25.1 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (4.29.2)\nCollecting ftfy (from -r requirements.txt (line 4))\n Downloading ftfy-6.1.1-py3-none-any.whl (53 kB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m53.1/53.1 kB\u001b[0m \u001b[31m5.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hRequirement already satisfied: tensorboard in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 5)) (2.12.3)\nRequirement already satisfied: datasets in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 6)) (2.1.0)\nRequirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.10/site-packages (from accelerate>=0.16.0->-r requirements.txt (line 1)) (1.23.5)\nRequirement already satisfied: packaging>=20.0 in /opt/conda/lib/python3.10/site-packages (from accelerate>=0.16.0->-r requirements.txt (line 1)) (21.3)\nRequirement already satisfied: psutil in /opt/conda/lib/python3.10/site-packages (from accelerate>=0.16.0->-r requirements.txt (line 1)) (5.9.3)\nRequirement already satisfied: pyyaml in /opt/conda/lib/python3.10/site-packages (from accelerate>=0.16.0->-r requirements.txt (line 1)) (5.4.1)\nRequirement already satisfied: torch>=1.6.0 in /opt/conda/lib/python3.10/site-packages (from accelerate>=0.16.0->-r requirements.txt (line 1)) (2.0.0)\nRequirement already satisfied: requests in /opt/conda/lib/python3.10/site-packages (from torchvision->-r requirements.txt (line 2)) (2.28.2)\nRequirement already satisfied: pillow!=8.3.*,>=5.3.0 in /opt/conda/lib/python3.10/site-packages (from torchvision->-r requirements.txt (line 2)) (9.5.0)\nRequirement already satisfied: filelock in /opt/conda/lib/python3.10/site-packages (from transformers>=4.25.1->-r requirements.txt (line 3)) (3.12.0)\nRequirement already satisfied: huggingface-hub<1.0,>=0.14.1 in /opt/conda/lib/python3.10/site-packages (from transformers>=4.25.1->-r requirements.txt (line 3)) (0.14.1)\nRequirement already satisfied: regex!=2019.12.17 in /opt/conda/lib/python3.10/site-packages (from transformers>=4.25.1->-r requirements.txt (line 3)) (2023.5.5)\nRequirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in /opt/conda/lib/python3.10/site-packages (from transformers>=4.25.1->-r requirements.txt (line 3)) (0.13.3)\nRequirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.10/site-packages (from transformers>=4.25.1->-r requirements.txt (line 3)) (4.64.1)\nRequirement already satisfied: wcwidth>=0.2.5 in /opt/conda/lib/python3.10/site-packages (from ftfy->-r requirements.txt (line 4)) (0.2.6)\nRequirement already satisfied: absl-py>=0.4 in /opt/conda/lib/python3.10/site-packages (from tensorboard->-r requirements.txt (line 5)) (1.4.0)\nRequirement already satisfied: grpcio>=1.48.2 in /opt/conda/lib/python3.10/site-packages (from tensorboard->-r requirements.txt (line 5)) (1.51.1)\nRequirement already satisfied: google-auth<3,>=1.6.3 in /opt/conda/lib/python3.10/site-packages (from tensorboard->-r requirements.txt (line 5)) (2.17.3)\nRequirement already satisfied: google-auth-oauthlib<1.1,>=0.5 in /opt/conda/lib/python3.10/site-packages (from tensorboard->-r requirements.txt (line 5)) (1.0.0)\nRequirement already satisfied: markdown>=2.6.8 in /opt/conda/lib/python3.10/site-packages (from tensorboard->-r requirements.txt (line 5)) (3.4.3)\nRequirement already satisfied: protobuf>=3.19.6 in /opt/conda/lib/python3.10/site-packages (from tensorboard->-r requirements.txt (line 5)) (3.20.3)\nRequirement already satisfied: setuptools>=41.0.0 in /opt/conda/lib/python3.10/site-packages (from tensorboard->-r requirements.txt (line 5)) (59.8.0)\nRequirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in /opt/conda/lib/python3.10/site-packages (from tensorboard->-r requirements.txt (line 5)) (0.7.0)\nRequirement already satisfied: werkzeug>=1.0.1 in /opt/conda/lib/python3.10/site-packages (from tensorboard->-r requirements.txt (line 5)) (2.3.4)\nRequirement already satisfied: wheel>=0.26 in /opt/conda/lib/python3.10/site-packages (from tensorboard->-r requirements.txt (line 5)) (0.40.0)\nRequirement already satisfied: pyarrow>=5.0.0 in /opt/conda/lib/python3.10/site-packages (from datasets->-r requirements.txt (line 6)) (10.0.1)\nRequirement already satisfied: dill in /opt/conda/lib/python3.10/site-packages (from datasets->-r requirements.txt (line 6)) (0.3.6)\nRequirement already satisfied: pandas in /opt/conda/lib/python3.10/site-packages (from datasets->-r requirements.txt (line 6)) (1.5.3)\nRequirement already satisfied: xxhash in /opt/conda/lib/python3.10/site-packages (from datasets->-r requirements.txt (line 6)) (3.2.0)\nRequirement already satisfied: multiprocess in /opt/conda/lib/python3.10/site-packages (from datasets->-r requirements.txt (line 6)) (0.70.14)\nRequirement already satisfied: fsspec[http]>=2021.05.0 in /opt/conda/lib/python3.10/site-packages (from datasets->-r requirements.txt (line 6)) (2023.5.0)\nRequirement already satisfied: aiohttp in /opt/conda/lib/python3.10/site-packages (from datasets->-r requirements.txt (line 6)) (3.8.4)\nRequirement already satisfied: responses<0.19 in /opt/conda/lib/python3.10/site-packages (from datasets->-r requirements.txt (line 6)) (0.18.0)\nRequirement already satisfied: attrs>=17.3.0 in /opt/conda/lib/python3.10/site-packages (from aiohttp->datasets->-r requirements.txt (line 6)) (23.1.0)\nRequirement already satisfied: charset-normalizer<4.0,>=2.0 in /opt/conda/lib/python3.10/site-packages (from aiohttp->datasets->-r requirements.txt (line 6)) (2.1.1)\nRequirement already satisfied: multidict<7.0,>=4.5 in /opt/conda/lib/python3.10/site-packages (from aiohttp->datasets->-r requirements.txt (line 6)) (6.0.4)\nRequirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /opt/conda/lib/python3.10/site-packages (from aiohttp->datasets->-r requirements.txt (line 6)) (4.0.2)\nRequirement already satisfied: yarl<2.0,>=1.0 in /opt/conda/lib/python3.10/site-packages (from aiohttp->datasets->-r requirements.txt (line 6)) (1.9.1)\nRequirement already satisfied: frozenlist>=1.1.1 in /opt/conda/lib/python3.10/site-packages (from aiohttp->datasets->-r requirements.txt (line 6)) (1.3.3)\nRequirement already satisfied: aiosignal>=1.1.2 in /opt/conda/lib/python3.10/site-packages (from aiohttp->datasets->-r requirements.txt (line 6)) (1.3.1)\nRequirement already satisfied: cachetools<6.0,>=2.0.0 in /opt/conda/lib/python3.10/site-packages (from google-auth<3,>=1.6.3->tensorboard->-r requirements.txt (line 5)) (4.2.4)\nRequirement already satisfied: pyasn1-modules>=0.2.1 in /opt/conda/lib/python3.10/site-packages (from google-auth<3,>=1.6.3->tensorboard->-r requirements.txt (line 5)) (0.2.7)\nRequirement already satisfied: six>=1.9.0 in /opt/conda/lib/python3.10/site-packages (from google-auth<3,>=1.6.3->tensorboard->-r requirements.txt (line 5)) (1.16.0)\nRequirement already satisfied: rsa<5,>=3.1.4 in /opt/conda/lib/python3.10/site-packages (from google-auth<3,>=1.6.3->tensorboard->-r requirements.txt (line 5)) (4.9)\nRequirement already satisfied: requests-oauthlib>=0.7.0 in /opt/conda/lib/python3.10/site-packages (from google-auth-oauthlib<1.1,>=0.5->tensorboard->-r requirements.txt (line 5)) (1.3.1)\nRequirement already satisfied: typing-extensions>=3.7.4.3 in /opt/conda/lib/python3.10/site-packages (from huggingface-hub<1.0,>=0.14.1->transformers>=4.25.1->-r requirements.txt (line 3)) (4.5.0)\nRequirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /opt/conda/lib/python3.10/site-packages (from packaging>=20.0->accelerate>=0.16.0->-r requirements.txt (line 1)) (3.0.9)\nRequirement already satisfied: idna<4,>=2.5 in /opt/conda/lib/python3.10/site-packages (from requests->torchvision->-r requirements.txt (line 2)) (3.4)\nRequirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.10/site-packages (from requests->torchvision->-r requirements.txt (line 2)) (1.26.15)\nRequirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.10/site-packages (from requests->torchvision->-r requirements.txt (line 2)) (2023.5.7)\nRequirement already satisfied: sympy in /opt/conda/lib/python3.10/site-packages (from torch>=1.6.0->accelerate>=0.16.0->-r requirements.txt (line 1)) (1.12)\nRequirement already satisfied: networkx in /opt/conda/lib/python3.10/site-packages (from torch>=1.6.0->accelerate>=0.16.0->-r requirements.txt (line 1)) (3.1)\nRequirement already satisfied: jinja2 in /opt/conda/lib/python3.10/site-packages (from torch>=1.6.0->accelerate>=0.16.0->-r requirements.txt (line 1)) (3.1.2)\nRequirement already satisfied: MarkupSafe>=2.1.1 in /opt/conda/lib/python3.10/site-packages (from werkzeug>=1.0.1->tensorboard->-r requirements.txt (line 5)) (2.1.2)\nRequirement already satisfied: python-dateutil>=2.8.1 in /opt/conda/lib/python3.10/site-packages (from pandas->datasets->-r requirements.txt (line 6)) (2.8.2)\nRequirement already satisfied: pytz>=2020.1 in /opt/conda/lib/python3.10/site-packages (from pandas->datasets->-r requirements.txt (line 6)) (2023.3)\nRequirement already satisfied: pyasn1<0.5.0,>=0.4.6 in /opt/conda/lib/python3.10/site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard->-r requirements.txt (line 5)) (0.4.8)\nRequirement already satisfied: oauthlib>=3.0.0 in /opt/conda/lib/python3.10/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<1.1,>=0.5->tensorboard->-r requirements.txt (line 5)) (3.2.2)\nRequirement already satisfied: mpmath>=0.19 in /opt/conda/lib/python3.10/site-packages (from sympy->torch>=1.6.0->accelerate>=0.16.0->-r requirements.txt (line 1)) (1.3.0)\nInstalling collected packages: ftfy, accelerate\n Attempting uninstall: accelerate\n Found existing installation: accelerate 0.12.0\n Uninstalling accelerate-0.12.0:\n Successfully uninstalled accelerate-0.12.0\nSuccessfully installed accelerate-0.20.3 ftfy-6.1.1\n\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n\u001b[0m","output_type":"stream"}]},{"cell_type":"code","source":"!pip install gdown\n!pip install xformers\n!pip install accelerate==0.17.1\n!pip install bitsandbytes","metadata":{"execution":{"iopub.status.busy":"2023-06-09T03:52:58.614561Z","iopub.execute_input":"2023-06-09T03:52:58.614958Z","iopub.status.idle":"2023-06-09T03:56:01.804661Z","shell.execute_reply.started":"2023-06-09T03:52:58.614921Z","shell.execute_reply":"2023-06-09T03:56:01.803507Z"},"trusted":true},"execution_count":6,"outputs":[{"name":"stdout","text":"Collecting gdown\n Downloading gdown-4.7.1-py3-none-any.whl (15 kB)\nRequirement already satisfied: filelock in /opt/conda/lib/python3.10/site-packages (from gdown) (3.12.0)\nRequirement already satisfied: requests[socks] in /opt/conda/lib/python3.10/site-packages (from gdown) (2.28.2)\nRequirement already satisfied: six in /opt/conda/lib/python3.10/site-packages (from gdown) (1.16.0)\nRequirement already satisfied: tqdm in /opt/conda/lib/python3.10/site-packages (from gdown) (4.64.1)\nRequirement already satisfied: beautifulsoup4 in /opt/conda/lib/python3.10/site-packages (from gdown) (4.12.2)\nRequirement already satisfied: soupsieve>1.2 in /opt/conda/lib/python3.10/site-packages (from beautifulsoup4->gdown) (2.3.2.post1)\nRequirement already satisfied: charset-normalizer<4,>=2 in /opt/conda/lib/python3.10/site-packages (from requests[socks]->gdown) (2.1.1)\nRequirement already satisfied: idna<4,>=2.5 in /opt/conda/lib/python3.10/site-packages (from requests[socks]->gdown) (3.4)\nRequirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.10/site-packages (from requests[socks]->gdown) (1.26.15)\nRequirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.10/site-packages (from requests[socks]->gdown) (2023.5.7)\nRequirement already satisfied: PySocks!=1.5.7,>=1.5.6 in /opt/conda/lib/python3.10/site-packages (from requests[socks]->gdown) (1.7.1)\nInstalling collected packages: gdown\nSuccessfully installed gdown-4.7.1\n\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n\u001b[0mCollecting xformers\n Downloading xformers-0.0.20-cp310-cp310-manylinux2014_x86_64.whl (109.1 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m109.1/109.1 MB\u001b[0m \u001b[31m11.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hRequirement already satisfied: numpy in /opt/conda/lib/python3.10/site-packages (from xformers) (1.23.5)\nCollecting pyre-extensions==0.0.29 (from xformers)\n Downloading pyre_extensions-0.0.29-py3-none-any.whl (12 kB)\nCollecting torch==2.0.1 (from xformers)\n Downloading torch-2.0.1-cp310-cp310-manylinux1_x86_64.whl (619.9 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m619.9/619.9 MB\u001b[0m \u001b[31m1.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hRequirement already satisfied: typing-inspect in /opt/conda/lib/python3.10/site-packages (from pyre-extensions==0.0.29->xformers) (0.8.0)\nRequirement already satisfied: typing-extensions in /opt/conda/lib/python3.10/site-packages (from pyre-extensions==0.0.29->xformers) (4.5.0)\nRequirement already satisfied: filelock in /opt/conda/lib/python3.10/site-packages (from torch==2.0.1->xformers) (3.12.0)\nRequirement already satisfied: sympy in /opt/conda/lib/python3.10/site-packages (from torch==2.0.1->xformers) (1.12)\nRequirement already satisfied: networkx in /opt/conda/lib/python3.10/site-packages (from torch==2.0.1->xformers) (3.1)\nRequirement already satisfied: jinja2 in /opt/conda/lib/python3.10/site-packages (from torch==2.0.1->xformers) (3.1.2)\nCollecting nvidia-cuda-nvrtc-cu11==11.7.99 (from torch==2.0.1->xformers)\n Downloading nvidia_cuda_nvrtc_cu11-11.7.99-2-py3-none-manylinux1_x86_64.whl (21.0 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m21.0/21.0 MB\u001b[0m \u001b[31m55.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting nvidia-cuda-runtime-cu11==11.7.99 (from torch==2.0.1->xformers)\n Downloading nvidia_cuda_runtime_cu11-11.7.99-py3-none-manylinux1_x86_64.whl (849 kB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m849.3/849.3 kB\u001b[0m \u001b[31m50.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hCollecting nvidia-cuda-cupti-cu11==11.7.101 (from torch==2.0.1->xformers)\n Downloading nvidia_cuda_cupti_cu11-11.7.101-py3-none-manylinux1_x86_64.whl (11.8 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m11.8/11.8 MB\u001b[0m \u001b[31m80.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting nvidia-cudnn-cu11==8.5.0.96 (from torch==2.0.1->xformers)\n Downloading nvidia_cudnn_cu11-8.5.0.96-2-py3-none-manylinux1_x86_64.whl (557.1 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m557.1/557.1 MB\u001b[0m \u001b[31m1.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting nvidia-cublas-cu11==11.10.3.66 (from torch==2.0.1->xformers)\n Downloading nvidia_cublas_cu11-11.10.3.66-py3-none-manylinux1_x86_64.whl (317.1 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m317.1/317.1 MB\u001b[0m \u001b[31m3.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting nvidia-cufft-cu11==10.9.0.58 (from torch==2.0.1->xformers)\n Downloading nvidia_cufft_cu11-10.9.0.58-py3-none-manylinux1_x86_64.whl (168.4 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m168.4/168.4 MB\u001b[0m \u001b[31m7.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting nvidia-curand-cu11==10.2.10.91 (from torch==2.0.1->xformers)\n Downloading nvidia_curand_cu11-10.2.10.91-py3-none-manylinux1_x86_64.whl (54.6 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m54.6/54.6 MB\u001b[0m \u001b[31m21.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting nvidia-cusolver-cu11==11.4.0.1 (from torch==2.0.1->xformers)\n Downloading nvidia_cusolver_cu11-11.4.0.1-2-py3-none-manylinux1_x86_64.whl (102.6 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m102.6/102.6 MB\u001b[0m \u001b[31m12.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting nvidia-cusparse-cu11==11.7.4.91 (from torch==2.0.1->xformers)\n Downloading nvidia_cusparse_cu11-11.7.4.91-py3-none-manylinux1_x86_64.whl (173.2 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m173.2/173.2 MB\u001b[0m \u001b[31m7.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting nvidia-nccl-cu11==2.14.3 (from torch==2.0.1->xformers)\n Downloading nvidia_nccl_cu11-2.14.3-py3-none-manylinux1_x86_64.whl (177.1 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m177.1/177.1 MB\u001b[0m \u001b[31m7.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting nvidia-nvtx-cu11==11.7.91 (from torch==2.0.1->xformers)\n Downloading nvidia_nvtx_cu11-11.7.91-py3-none-manylinux1_x86_64.whl (98 kB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m98.6/98.6 kB\u001b[0m \u001b[31m8.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hCollecting triton==2.0.0 (from torch==2.0.1->xformers)\n Downloading triton-2.0.0-1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (63.3 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m63.3/63.3 MB\u001b[0m \u001b[31m19.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hRequirement already satisfied: setuptools in /opt/conda/lib/python3.10/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch==2.0.1->xformers) (59.8.0)\nRequirement already satisfied: wheel in /opt/conda/lib/python3.10/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch==2.0.1->xformers) (0.40.0)\nCollecting cmake (from triton==2.0.0->torch==2.0.1->xformers)\n Downloading cmake-3.26.4-py2.py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (24.0 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m24.0/24.0 MB\u001b[0m \u001b[31m4.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting lit (from triton==2.0.0->torch==2.0.1->xformers)\n Downloading lit-16.0.5.post0.tar.gz (138 kB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m138.1/138.1 kB\u001b[0m \u001b[31m13.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25ldone\n\u001b[?25hRequirement already satisfied: MarkupSafe>=2.0 in /opt/conda/lib/python3.10/site-packages (from jinja2->torch==2.0.1->xformers) (2.1.2)\nRequirement already satisfied: mpmath>=0.19 in /opt/conda/lib/python3.10/site-packages (from sympy->torch==2.0.1->xformers) (1.3.0)\nRequirement already satisfied: mypy-extensions>=0.3.0 in /opt/conda/lib/python3.10/site-packages (from typing-inspect->pyre-extensions==0.0.29->xformers) (1.0.0)\nBuilding wheels for collected packages: lit\n Building wheel for lit (setup.py) ... \u001b[?25ldone\n\u001b[?25h Created wheel for lit: filename=lit-16.0.5.post0-py3-none-any.whl size=88269 sha256=67620c72c2ce2a3cf1fa7aca3ab9b9ab864f6ae1854e1d243ae5a3c36e549968\n Stored in directory: /root/.cache/pip/wheels/1a/24/92/1e1c9e37be8411a7c7c18a4c54962f5d0a75c56bab4a6f7f57\nSuccessfully built lit\nInstalling collected packages: lit, cmake, nvidia-nvtx-cu11, nvidia-nccl-cu11, nvidia-cusparse-cu11, nvidia-curand-cu11, nvidia-cufft-cu11, nvidia-cuda-runtime-cu11, nvidia-cuda-nvrtc-cu11, nvidia-cuda-cupti-cu11, nvidia-cublas-cu11, pyre-extensions, nvidia-cusolver-cu11, nvidia-cudnn-cu11, triton, torch, xformers\n Attempting uninstall: torch\n Found existing installation: torch 2.0.0\n Uninstalling torch-2.0.0:\n Successfully uninstalled torch-2.0.0\n\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\ntorchdata 0.6.0 requires torch==2.0.0, but you have torch 2.0.1 which is incompatible.\u001b[0m\u001b[31m\n\u001b[0mSuccessfully installed cmake-3.26.4 lit-16.0.5.post0 nvidia-cublas-cu11-11.10.3.66 nvidia-cuda-cupti-cu11-11.7.101 nvidia-cuda-nvrtc-cu11-11.7.99 nvidia-cuda-runtime-cu11-11.7.99 nvidia-cudnn-cu11-8.5.0.96 nvidia-cufft-cu11-10.9.0.58 nvidia-curand-cu11-10.2.10.91 nvidia-cusolver-cu11-11.4.0.1 nvidia-cusparse-cu11-11.7.4.91 nvidia-nccl-cu11-2.14.3 nvidia-nvtx-cu11-11.7.91 pyre-extensions-0.0.29 torch-2.0.1 triton-2.0.0 xformers-0.0.20\n\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n\u001b[0mCollecting accelerate==0.17.1\n Downloading accelerate-0.17.1-py3-none-any.whl (212 kB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m212.8/212.8 kB\u001b[0m \u001b[31m7.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hRequirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.10/site-packages (from accelerate==0.17.1) (1.23.5)\nRequirement already satisfied: packaging>=20.0 in /opt/conda/lib/python3.10/site-packages (from accelerate==0.17.1) (21.3)\nRequirement already satisfied: psutil in /opt/conda/lib/python3.10/site-packages (from accelerate==0.17.1) (5.9.3)\nRequirement already satisfied: pyyaml in /opt/conda/lib/python3.10/site-packages (from accelerate==0.17.1) (5.4.1)\nRequirement already satisfied: torch>=1.4.0 in /opt/conda/lib/python3.10/site-packages (from accelerate==0.17.1) (2.0.1)\nRequirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /opt/conda/lib/python3.10/site-packages (from packaging>=20.0->accelerate==0.17.1) (3.0.9)\nRequirement already satisfied: filelock in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (3.12.0)\nRequirement already satisfied: typing-extensions in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (4.5.0)\nRequirement already satisfied: sympy in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (1.12)\nRequirement already satisfied: networkx in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (3.1)\nRequirement already satisfied: jinja2 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (3.1.2)\nRequirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (11.7.99)\nRequirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (11.7.99)\nRequirement already satisfied: nvidia-cuda-cupti-cu11==11.7.101 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (11.7.101)\nRequirement already satisfied: nvidia-cudnn-cu11==8.5.0.96 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (8.5.0.96)\nRequirement already satisfied: nvidia-cublas-cu11==11.10.3.66 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (11.10.3.66)\nRequirement already satisfied: nvidia-cufft-cu11==10.9.0.58 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (10.9.0.58)\nRequirement already satisfied: nvidia-curand-cu11==10.2.10.91 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (10.2.10.91)\nRequirement already satisfied: nvidia-cusolver-cu11==11.4.0.1 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (11.4.0.1)\nRequirement already satisfied: nvidia-cusparse-cu11==11.7.4.91 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (11.7.4.91)\nRequirement already satisfied: nvidia-nccl-cu11==2.14.3 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (2.14.3)\nRequirement already satisfied: nvidia-nvtx-cu11==11.7.91 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (11.7.91)\nRequirement already satisfied: triton==2.0.0 in /opt/conda/lib/python3.10/site-packages (from torch>=1.4.0->accelerate==0.17.1) (2.0.0)\nRequirement already satisfied: setuptools in /opt/conda/lib/python3.10/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch>=1.4.0->accelerate==0.17.1) (59.8.0)\nRequirement already satisfied: wheel in /opt/conda/lib/python3.10/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch>=1.4.0->accelerate==0.17.1) (0.40.0)\nRequirement already satisfied: cmake in /opt/conda/lib/python3.10/site-packages (from triton==2.0.0->torch>=1.4.0->accelerate==0.17.1) (3.26.4)\nRequirement already satisfied: lit in /opt/conda/lib/python3.10/site-packages (from triton==2.0.0->torch>=1.4.0->accelerate==0.17.1) (16.0.5.post0)\nRequirement already satisfied: MarkupSafe>=2.0 in /opt/conda/lib/python3.10/site-packages (from jinja2->torch>=1.4.0->accelerate==0.17.1) (2.1.2)\nRequirement already satisfied: mpmath>=0.19 in /opt/conda/lib/python3.10/site-packages (from sympy->torch>=1.4.0->accelerate==0.17.1) (1.3.0)\nInstalling collected packages: accelerate\n Attempting uninstall: accelerate\n Found existing installation: accelerate 0.20.3\n Uninstalling accelerate-0.20.3:\n Successfully uninstalled accelerate-0.20.3\nSuccessfully installed accelerate-0.17.1\n\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n\u001b[0mCollecting bitsandbytes\n Downloading bitsandbytes-0.39.0-py3-none-any.whl (92.2 MB)\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m92.2/92.2 MB\u001b[0m \u001b[31m12.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hInstalling collected packages: bitsandbytes\nSuccessfully installed bitsandbytes-0.39.0\n\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n\u001b[0m","output_type":"stream"}]},{"cell_type":"code","source":"import gdown\n\noutput = \"v1-5-pruned.ckpt\"\nurl = \"https://drive.google.com/file/d/1Q82ONPnd4gF2CZKxP-PXbAQTzRB0NrbA/view?usp=drive_link\"\ngdown.download(url=url, output=output, quiet=False, fuzzy=True)","metadata":{"execution":{"iopub.status.busy":"2023-06-09T03:56:01.808610Z","iopub.execute_input":"2023-06-09T03:56:01.808981Z","iopub.status.idle":"2023-06-09T03:57:25.328231Z","shell.execute_reply.started":"2023-06-09T03:56:01.808952Z","shell.execute_reply":"2023-06-09T03:57:25.327311Z"},"trusted":true},"execution_count":7,"outputs":[{"name":"stderr","text":"Downloading...\nFrom (uriginal): https://drive.google.com/uc?id=1Q82ONPnd4gF2CZKxP-PXbAQTzRB0NrbA\nFrom (redirected): https://drive.google.com/uc?id=1Q82ONPnd4gF2CZKxP-PXbAQTzRB0NrbA&confirm=t&uuid=a68230de-ec6f-45bf-8d80-a4cda54ab65c\nTo: /kaggle/working/diffusers/examples/controlnet/v1-5-pruned.ckpt\n100%|██████████| 7.70G/7.70G [01:22<00:00, 93.6MB/s]\n","output_type":"stream"},{"execution_count":7,"output_type":"execute_result","data":{"text/plain":"'v1-5-pruned.ckpt'"},"metadata":{}}]},{"cell_type":"code","source":"from accelerate.utils import write_basic_config\nwrite_basic_config()","metadata":{"execution":{"iopub.status.busy":"2023-06-09T03:57:25.329856Z","iopub.execute_input":"2023-06-09T03:57:25.331866Z","iopub.status.idle":"2023-06-09T03:57:39.644943Z","shell.execute_reply.started":"2023-06-09T03:57:25.331832Z","shell.execute_reply":"2023-06-09T03:57:39.644008Z"},"trusted":true},"execution_count":8,"outputs":[{"name":"stderr","text":"/opt/conda/lib/python3.10/site-packages/tensorflow_io/python/ops/__init__.py:98: UserWarning: unable to load libtensorflow_io_plugins.so: unable to open file: libtensorflow_io_plugins.so, from paths: ['/opt/conda/lib/python3.10/site-packages/tensorflow_io/python/ops/libtensorflow_io_plugins.so']\ncaused by: ['/opt/conda/lib/python3.10/site-packages/tensorflow_io/python/ops/libtensorflow_io_plugins.so: undefined symbol: _ZN3tsl6StatusC1EN10tensorflow5error4CodeESt17basic_string_viewIcSt11char_traitsIcEENS_14SourceLocationE']\n warnings.warn(f\"unable to load libtensorflow_io_plugins.so: {e}\")\n/opt/conda/lib/python3.10/site-packages/tensorflow_io/python/ops/__init__.py:104: UserWarning: file system plugins are not loaded: unable to open file: libtensorflow_io.so, from paths: ['/opt/conda/lib/python3.10/site-packages/tensorflow_io/python/ops/libtensorflow_io.so']\ncaused by: ['/opt/conda/lib/python3.10/site-packages/tensorflow_io/python/ops/libtensorflow_io.so: undefined symbol: _ZTVN10tensorflow13GcsFileSystemE']\n warnings.warn(f\"file system plugins are not loaded: {e}\")\n","output_type":"stream"},{"execution_count":8,"output_type":"execute_result","data":{"text/plain":"PosixPath('/root/.cache/huggingface/accelerate/default_config.yaml')"},"metadata":{}}]},{"cell_type":"code","source":"import gdown\n\noutput = \"conditioning_image_1.png\"\nurl = \"https://drive.google.com/file/d/1n-KCYN7MDQWDlScmJBBMqCE3mdwHXflk/view?usp=drive_link\"\ngdown.download(url=url, output=output, quiet=False, fuzzy=True)\n\noutput = \"conditioning_image_2.png\"\nurl = \"https://drive.google.com/file/d/1QKFSzTtTB7u6E-VGh0ib6jinF103_vb2/view?usp=drive_link\"\ngdown.download(url=url, output=output, quiet=False, fuzzy=True)","metadata":{"execution":{"iopub.status.busy":"2023-06-09T03:57:39.647657Z","iopub.execute_input":"2023-06-09T03:57:39.648616Z","iopub.status.idle":"2023-06-09T03:57:42.450451Z","shell.execute_reply.started":"2023-06-09T03:57:39.648579Z","shell.execute_reply":"2023-06-09T03:57:42.449330Z"},"trusted":true},"execution_count":9,"outputs":[{"name":"stderr","text":"Downloading...\nFrom: https://drive.google.com/uc?id=1n-KCYN7MDQWDlScmJBBMqCE3mdwHXflk\nTo: /kaggle/working/diffusers/examples/controlnet/conditioning_image_1.png\n100%|██████████| 470k/470k [00:00<00:00, 96.5MB/s]\nDownloading...\nFrom: https://drive.google.com/uc?id=1QKFSzTtTB7u6E-VGh0ib6jinF103_vb2\nTo: /kaggle/working/diffusers/examples/controlnet/conditioning_image_2.png\n100%|██████████| 607k/607k [00:00<00:00, 114MB/s]\n","output_type":"stream"},{"execution_count":9,"output_type":"execute_result","data":{"text/plain":"'conditioning_image_2.png'"},"metadata":{}}]},{"cell_type":"code","source":"from huggingface_hub import notebook_login\nnotebook_login()","metadata":{"execution":{"iopub.status.busy":"2023-06-09T03:57:42.452011Z","iopub.execute_input":"2023-06-09T03:57:42.452386Z","iopub.status.idle":"2023-06-09T03:57:42.484611Z","shell.execute_reply.started":"2023-06-09T03:57:42.452351Z","shell.execute_reply":"2023-06-09T03:57:42.483723Z"},"trusted":true},"execution_count":10,"outputs":[{"output_type":"display_data","data":{"text/plain":"VBox(children=(HTML(value='
by passing `safety_checker=None`. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .\n{'solver_type', 'predict_x0', 'solver_p', 'dynamic_thresholding_ratio', 'thresholding', 'disable_corrector', 'lower_order_final', 'sample_max_value', 'solver_order'} was not found in config. Values will be initialized to default values.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nSteps: 12%|█▌ | 200/1600 [11:25<58:43, 2.52s/it, loss=0.107, lr=1e-5]{'requires_safety_checker', 'controlnet'} was not found in config. Values will be initialized to default values.\n{'prediction_type'} was not found in config. Values will be initialized to default values.\nYou have disabled the safety checker for by passing `safety_checker=None`. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .\n{'solver_type', 'predict_x0', 'solver_p', 'dynamic_thresholding_ratio', 'thresholding', 'disable_corrector', 'lower_order_final', 'sample_max_value', 'solver_order'} was not found in config. Values will be initialized to default values.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nForward upsample size to force interpolation output size.\nSteps: 14%|█▎ | 217/1600 [14:19<1:05:02, 2.82s/it, loss=0.101, lr=1e-5]","output_type":"stream"}]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}