where does Stability-AI generative-models save generated images
Succeeded in deploying and running SDXL-Turbo, but can't seem to find the generated image...
Where does generative-models-main save the generted image?
generative-models-main.zip downloaded from https://github.com/Stability-AI/generative-models
Here is the full screen output:
(base) marco@marco-desktop:/media/marco/DATA/SOFTWARE/AI/Stability-AI/generative-models-main$ python3 -m venv .pt2
(base) marco@marco-desktop:/media/marco/DATA/SOFTWARE/AI/Stability-AI/generative-models-main$ source .pt2/bin/activate
(.pt2) (base) marco@marco-desktop:/media/marco/DATA/SOFTWARE/AI/Stability-AI/generative-models-main$ pip3 install -r requirements/pt2.txt
Collecting clip@ git+https://github.com/openai/CLIP.git (from -r requirements/pt2.txt (line 3))
Cloning https://github.com/openai/CLIP.git to /tmp/pip-install-_84o8wos/clip_fe4a40cd6aab45c6bd427798e6fc5528
Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git /tmp/pip-install-_84o8wos/clip_fe4a40cd6aab45c6bd427798e6fc5528
Resolved https://github.com/openai/CLIP.git to commit a1d071733d7111c9c014f024669f959182114e33
Preparing metadata (setup.py) ... done
Requirement already satisfied: black==23.7.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 1)) (23.7.0)
Requirement already satisfied: chardet==5.1.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 2)) (5.1.0)
Requirement already satisfied: einops>=0.6.1 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 4)) (0.7.0)
Requirement already satisfied: fairscale>=0.4.13 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 5)) (0.4.13)
Requirement already satisfied: fire>=0.5.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 6)) (0.5.0)
Requirement already satisfied: fsspec>=2023.6.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 7)) (2023.12.0)
Requirement already satisfied: invisible-watermark>=0.2.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 8)) (0.2.0)
Requirement already satisfied: kornia==0.6.9 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 9)) (0.6.9)
Requirement already satisfied: matplotlib>=3.7.2 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 10)) (3.8.2)
Requirement already satisfied: natsort>=8.4.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 11)) (8.4.0)
Requirement already satisfied: ninja>=1.11.1 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 12)) (1.11.1.1)
Requirement already satisfied: numpy>=1.24.4 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 13)) (1.26.2)
Requirement already satisfied: omegaconf>=2.3.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 14)) (2.3.0)
Requirement already satisfied: open-clip-torch>=2.20.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 15)) (2.23.0)
Requirement already satisfied: opencv-python==4.6.0.66 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 16)) (4.6.0.66)
Requirement already satisfied: pandas>=2.0.3 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 17)) (2.1.3)
Requirement already satisfied: pillow>=9.5.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 18)) (10.1.0)
Requirement already satisfied: pudb>=2022.1.3 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 19)) (2023.1)
Requirement already satisfied: pytorch-lightning==2.0.1 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 20)) (2.0.1)
Requirement already satisfied: pyyaml>=6.0.1 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 21)) (6.0.1)
Requirement already satisfied: scipy>=1.10.1 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 22)) (1.11.4)
Requirement already satisfied: streamlit>=0.73.1 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 23)) (1.29.0)
Requirement already satisfied: tensorboardx==2.6 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 24)) (2.6)
Requirement already satisfied: timm>=0.9.2 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 25)) (0.9.12)
Requirement already satisfied: tokenizers==0.12.1 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 26)) (0.12.1)
Requirement already satisfied: torch>=2.0.1 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 27)) (2.0.1)
Requirement already satisfied: torchaudio>=2.0.2 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 28)) (2.0.2)
Requirement already satisfied: torchdata==0.6.1 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 29)) (0.6.1)
Requirement already satisfied: torchmetrics>=1.0.1 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 30)) (1.2.1)
Requirement already satisfied: torchvision>=0.15.2 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 31)) (0.15.2)
Requirement already satisfied: tqdm>=4.65.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 32)) (4.66.1)
Requirement already satisfied: transformers==4.19.1 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 33)) (4.19.1)
Requirement already satisfied: triton==2.0.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 34)) (2.0.0)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 35)) (1.26.18)
Requirement already satisfied: wandb>=0.15.6 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 36)) (0.16.0)
Requirement already satisfied: webdataset>=0.2.33 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 37)) (0.2.79)
Requirement already satisfied: wheel>=0.41.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 38)) (0.42.0)
Requirement already satisfied: xformers>=0.0.20 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 39)) (0.0.22)
Requirement already satisfied: streamlit-keyup==0.2.0 in ./.pt2/lib/python3.10/site-packages (from -r requirements/pt2.txt (line 40)) (0.2.0)
Requirement already satisfied: click>=8.0.0 in ./.pt2/lib/python3.10/site-packages (from black==23.7.0->-r requirements/pt2.txt (line 1)) (8.1.7)
Requirement already satisfied: mypy-extensions>=0.4.3 in ./.pt2/lib/python3.10/site-packages (from black==23.7.0->-r requirements/pt2.txt (line 1)) (1.0.0)
Requirement already satisfied: packaging>=22.0 in ./.pt2/lib/python3.10/site-packages (from black==23.7.0->-r requirements/pt2.txt (line 1)) (23.2)
Requirement already satisfied: pathspec>=0.9.0 in ./.pt2/lib/python3.10/site-packages (from black==23.7.0->-r requirements/pt2.txt (line 1)) (0.11.2)
Requirement already satisfied: platformdirs>=2 in ./.pt2/lib/python3.10/site-packages (from black==23.7.0->-r requirements/pt2.txt (line 1)) (4.0.0)
Requirement already satisfied: tomli>=1.1.0 in ./.pt2/lib/python3.10/site-packages (from black==23.7.0->-r requirements/pt2.txt (line 1)) (2.0.1)
Requirement already satisfied: typing-extensions>=4.0.0 in ./.pt2/lib/python3.10/site-packages (from pytorch-lightning==2.0.1->-r requirements/pt2.txt (line 20)) (4.8.0)
Requirement already satisfied: lightning-utilities>=0.7.0 in ./.pt2/lib/python3.10/site-packages (from pytorch-lightning==2.0.1->-r requirements/pt2.txt (line 20)) (0.10.0)
Requirement already satisfied: protobuf<4,>=3.8.0 in ./.pt2/lib/python3.10/site-packages (from tensorboardx==2.6->-r requirements/pt2.txt (line 24)) (3.20.3)
Requirement already satisfied: requests in ./.pt2/lib/python3.10/site-packages (from torchdata==0.6.1->-r requirements/pt2.txt (line 29)) (2.31.0)
Requirement already satisfied: filelock in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (3.13.1)
Requirement already satisfied: sympy in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (1.12)
Requirement already satisfied: networkx in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (3.2.1)
Requirement already satisfied: jinja2 in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (3.1.2)
Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (11.7.99)
Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (11.7.99)
Requirement already satisfied: nvidia-cuda-cupti-cu11==11.7.101 in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (11.7.101)
Requirement already satisfied: nvidia-cudnn-cu11==8.5.0.96 in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (8.5.0.96)
Requirement already satisfied: nvidia-cublas-cu11==11.10.3.66 in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (11.10.3.66)
Requirement already satisfied: nvidia-cufft-cu11==10.9.0.58 in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (10.9.0.58)
Requirement already satisfied: nvidia-curand-cu11==10.2.10.91 in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (10.2.10.91)
Requirement already satisfied: nvidia-cusolver-cu11==11.4.0.1 in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (11.4.0.1)
Requirement already satisfied: nvidia-cusparse-cu11==11.7.4.91 in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (11.7.4.91)
Requirement already satisfied: nvidia-nccl-cu11==2.14.3 in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (2.14.3)
Requirement already satisfied: nvidia-nvtx-cu11==11.7.91 in ./.pt2/lib/python3.10/site-packages (from torch>=2.0.1->-r requirements/pt2.txt (line 27)) (11.7.91)
Requirement already satisfied: huggingface-hub<1.0,>=0.1.0 in ./.pt2/lib/python3.10/site-packages (from transformers==4.19.1->-r requirements/pt2.txt (line 33)) (0.19.4)
Requirement already satisfied: regex!=2019.12.17 in ./.pt2/lib/python3.10/site-packages (from transformers==4.19.1->-r requirements/pt2.txt (line 33)) (2023.10.3)
Requirement already satisfied: cmake in ./.pt2/lib/python3.10/site-packages (from triton==2.0.0->-r requirements/pt2.txt (line 34)) (3.27.9)
Requirement already satisfied: lit in ./.pt2/lib/python3.10/site-packages (from triton==2.0.0->-r requirements/pt2.txt (line 34)) (17.0.6)
Requirement already satisfied: setuptools in ./.pt2/lib/python3.10/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch>=2.0.1->-r requirements/pt2.txt (line 27)) (65.5.0)
Requirement already satisfied: ftfy in ./.pt2/lib/python3.10/site-packages (from clip@ git+https://github.com/openai/CLIP.git->-r requirements/pt2.txt (line 3)) (6.1.3)
Requirement already satisfied: six in ./.pt2/lib/python3.10/site-packages (from fire>=0.5.0->-r requirements/pt2.txt (line 6)) (1.16.0)
Requirement already satisfied: termcolor in ./.pt2/lib/python3.10/site-packages (from fire>=0.5.0->-r requirements/pt2.txt (line 6)) (2.4.0)
Requirement already satisfied: PyWavelets>=1.1.1 in ./.pt2/lib/python3.10/site-packages (from invisible-watermark>=0.2.0->-r requirements/pt2.txt (line 8)) (1.5.0)
Requirement already satisfied: contourpy>=1.0.1 in ./.pt2/lib/python3.10/site-packages (from matplotlib>=3.7.2->-r requirements/pt2.txt (line 10)) (1.2.0)
Requirement already satisfied: cycler>=0.10 in ./.pt2/lib/python3.10/site-packages (from matplotlib>=3.7.2->-r requirements/pt2.txt (line 10)) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in ./.pt2/lib/python3.10/site-packages (from matplotlib>=3.7.2->-r requirements/pt2.txt (line 10)) (4.46.0)
Requirement already satisfied: kiwisolver>=1.3.1 in ./.pt2/lib/python3.10/site-packages (from matplotlib>=3.7.2->-r requirements/pt2.txt (line 10)) (1.4.5)
Requirement already satisfied: pyparsing>=2.3.1 in ./.pt2/lib/python3.10/site-packages (from matplotlib>=3.7.2->-r requirements/pt2.txt (line 10)) (3.1.1)
Requirement already satisfied: python-dateutil>=2.7 in ./.pt2/lib/python3.10/site-packages (from matplotlib>=3.7.2->-r requirements/pt2.txt (line 10)) (2.8.2)
Requirement already satisfied: antlr4-python3-runtime==4.9.* in ./.pt2/lib/python3.10/site-packages (from omegaconf>=2.3.0->-r requirements/pt2.txt (line 14)) (4.9.3)
Requirement already satisfied: sentencepiece in ./.pt2/lib/python3.10/site-packages (from open-clip-torch>=2.20.0->-r requirements/pt2.txt (line 15)) (0.1.99)
Requirement already satisfied: pytz>=2020.1 in ./.pt2/lib/python3.10/site-packages (from pandas>=2.0.3->-r requirements/pt2.txt (line 17)) (2023.3.post1)
Requirement already satisfied: tzdata>=2022.1 in ./.pt2/lib/python3.10/site-packages (from pandas>=2.0.3->-r requirements/pt2.txt (line 17)) (2023.3)
Requirement already satisfied: urwid>=1.1.1 in ./.pt2/lib/python3.10/site-packages (from pudb>=2022.1.3->-r requirements/pt2.txt (line 19)) (2.2.3)
Requirement already satisfied: pygments>=2.7.4 in ./.pt2/lib/python3.10/site-packages (from pudb>=2022.1.3->-r requirements/pt2.txt (line 19)) (2.17.2)
Requirement already satisfied: jedi<1,>=0.18 in ./.pt2/lib/python3.10/site-packages (from pudb>=2022.1.3->-r requirements/pt2.txt (line 19)) (0.19.1)
Requirement already satisfied: urwid_readline in ./.pt2/lib/python3.10/site-packages (from pudb>=2022.1.3->-r requirements/pt2.txt (line 19)) (0.13)
Requirement already satisfied: altair<6,>=4.0 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (5.2.0)
Requirement already satisfied: blinker<2,>=1.0.0 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (1.7.0)
Requirement already satisfied: cachetools<6,>=4.0 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (5.3.2)
Requirement already satisfied: importlib-metadata<7,>=1.4 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (6.11.0)
Requirement already satisfied: pyarrow>=6.0 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (14.0.1)
Requirement already satisfied: rich<14,>=10.14.0 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (13.7.0)
Requirement already satisfied: tenacity<9,>=8.1.0 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (8.2.3)
Requirement already satisfied: toml<2,>=0.10.1 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (0.10.2)
Requirement already satisfied: tzlocal<6,>=1.1 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (5.2)
Requirement already satisfied: validators<1,>=0.2 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (0.22.0)
Requirement already satisfied: gitpython!=3.1.19,<4,>=3.0.7 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (3.1.40)
Requirement already satisfied: pydeck<1,>=0.8.0b4 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (0.8.1b0)
Requirement already satisfied: tornado<7,>=6.0.3 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (6.4)
Requirement already satisfied: watchdog>=2.1.5 in ./.pt2/lib/python3.10/site-packages (from streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (3.0.0)
Requirement already satisfied: safetensors in ./.pt2/lib/python3.10/site-packages (from timm>=0.9.2->-r requirements/pt2.txt (line 25)) (0.4.1)
Requirement already satisfied: psutil>=5.0.0 in ./.pt2/lib/python3.10/site-packages (from wandb>=0.15.6->-r requirements/pt2.txt (line 36)) (5.9.6)
Requirement already satisfied: sentry-sdk>=1.0.0 in ./.pt2/lib/python3.10/site-packages (from wandb>=0.15.6->-r requirements/pt2.txt (line 36)) (1.38.0)
Requirement already satisfied: docker-pycreds>=0.4.0 in ./.pt2/lib/python3.10/site-packages (from wandb>=0.15.6->-r requirements/pt2.txt (line 36)) (0.4.0)
Requirement already satisfied: setproctitle in ./.pt2/lib/python3.10/site-packages (from wandb>=0.15.6->-r requirements/pt2.txt (line 36)) (1.3.3)
Requirement already satisfied: appdirs>=1.4.3 in ./.pt2/lib/python3.10/site-packages (from wandb>=0.15.6->-r requirements/pt2.txt (line 36)) (1.4.4)
Requirement already satisfied: braceexpand in ./.pt2/lib/python3.10/site-packages (from webdataset>=0.2.33->-r requirements/pt2.txt (line 37)) (0.1.7)
Requirement already satisfied: jsonschema>=3.0 in ./.pt2/lib/python3.10/site-packages (from altair<6,>=4.0->streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (4.20.0)
Requirement already satisfied: toolz in ./.pt2/lib/python3.10/site-packages (from altair<6,>=4.0->streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (0.12.0)
Requirement already satisfied: aiohttp!=4.0.0a0,!=4.0.0a1 in ./.pt2/lib/python3.10/site-packages (from fsspec[http]>2021.06.0->pytorch-lightning==2.0.1->-r requirements/pt2.txt (line 20)) (3.9.1)
Requirement already satisfied: gitdb<5,>=4.0.1 in ./.pt2/lib/python3.10/site-packages (from gitpython!=3.1.19,<4,>=3.0.7->streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (4.0.11)
Requirement already satisfied: zipp>=0.5 in ./.pt2/lib/python3.10/site-packages (from importlib-metadata<7,>=1.4->streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (3.17.0)
Requirement already satisfied: parso<0.9.0,>=0.8.3 in ./.pt2/lib/python3.10/site-packages (from jedi<1,>=0.18->pudb>=2022.1.3->-r requirements/pt2.txt (line 19)) (0.8.3)
Requirement already satisfied: MarkupSafe>=2.0 in ./.pt2/lib/python3.10/site-packages (from jinja2->torch>=2.0.1->-r requirements/pt2.txt (line 27)) (2.1.3)
Requirement already satisfied: charset-normalizer<4,>=2 in ./.pt2/lib/python3.10/site-packages (from requests->torchdata==0.6.1->-r requirements/pt2.txt (line 29)) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in ./.pt2/lib/python3.10/site-packages (from requests->torchdata==0.6.1->-r requirements/pt2.txt (line 29)) (3.6)
Requirement already satisfied: certifi>=2017.4.17 in ./.pt2/lib/python3.10/site-packages (from requests->torchdata==0.6.1->-r requirements/pt2.txt (line 29)) (2023.11.17)
Requirement already satisfied: markdown-it-py>=2.2.0 in ./.pt2/lib/python3.10/site-packages (from rich<14,>=10.14.0->streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (3.0.0)
Requirement already satisfied: wcwidth<0.3.0,>=0.2.12 in ./.pt2/lib/python3.10/site-packages (from ftfy->clip@ git+https://github.com/openai/CLIP.git->-r requirements/pt2.txt (line 3)) (0.2.12)
Requirement already satisfied: mpmath>=0.19 in ./.pt2/lib/python3.10/site-packages (from sympy->torch>=2.0.1->-r requirements/pt2.txt (line 27)) (1.3.0)
Requirement already satisfied: attrs>=17.3.0 in ./.pt2/lib/python3.10/site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>2021.06.0->pytorch-lightning==2.0.1->-r requirements/pt2.txt (line 20)) (23.1.0)
Requirement already satisfied: multidict<7.0,>=4.5 in ./.pt2/lib/python3.10/site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>2021.06.0->pytorch-lightning==2.0.1->-r requirements/pt2.txt (line 20)) (6.0.4)
Requirement already satisfied: yarl<2.0,>=1.0 in ./.pt2/lib/python3.10/site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>2021.06.0->pytorch-lightning==2.0.1->-r requirements/pt2.txt (line 20)) (1.9.3)
Requirement already satisfied: frozenlist>=1.1.1 in ./.pt2/lib/python3.10/site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>2021.06.0->pytorch-lightning==2.0.1->-r requirements/pt2.txt (line 20)) (1.4.0)
Requirement already satisfied: aiosignal>=1.1.2 in ./.pt2/lib/python3.10/site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>2021.06.0->pytorch-lightning==2.0.1->-r requirements/pt2.txt (line 20)) (1.3.1)
Requirement already satisfied: async-timeout<5.0,>=4.0 in ./.pt2/lib/python3.10/site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>2021.06.0->pytorch-lightning==2.0.1->-r requirements/pt2.txt (line 20)) (4.0.3)
Requirement already satisfied: smmap<6,>=3.0.1 in ./.pt2/lib/python3.10/site-packages (from gitdb<5,>=4.0.1->gitpython!=3.1.19,<4,>=3.0.7->streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (5.0.1)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in ./.pt2/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6,>=4.0->streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (2023.11.2)
Requirement already satisfied: referencing>=0.28.4 in ./.pt2/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6,>=4.0->streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (0.31.1)
Requirement already satisfied: rpds-py>=0.7.1 in ./.pt2/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6,>=4.0->streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (0.13.2)
Requirement already satisfied: mdurl~=0.1 in ./.pt2/lib/python3.10/site-packages (from markdown-it-py>=2.2.0->rich<14,>=10.14.0->streamlit>=0.73.1->-r requirements/pt2.txt (line 23)) (0.1.2)
(.pt2) (base) marco@marco-desktop:/media/marco/DATA/SOFTWARE/AI/Stability-AI/generative-models-main$ pip3 install .
Processing /media/marco/DATA/SOFTWARE/AI/Stability-AI/generative-models-main
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: sgm
Building wheel for sgm (pyproject.toml) ... done
Created wheel for sgm: filename=sgm-0.1.0-py3-none-any.whl size=116175 sha256=6a7e94072f8fbaa6af120bd0388055733aed0da4fae4df6d389f41c359666975
Stored in directory: /home/marco/.cache/pip/wheels/22/c9/32/c8784a99dd5b231a1d167746655536291bd5c1390b2b25cf60
Successfully built sgm
Installing collected packages: sgm
Attempting uninstall: sgm
Found existing installation: sgm 0.1.0
Uninstalling sgm-0.1.0:
Successfully uninstalled sgm-0.1.0
Successfully installed sgm-0.1.0
(.pt2) (base) marco@marco-desktop:/media/marco/DATA/SOFTWARE/AI/Stability-AI/generative-models-main$ pip3 install -e git+https://github.com/Stability-AI/datapipelines.git@main#egg=sdata
Obtaining sdata from git+https://github.com/Stability-AI/datapipelines.git@main#egg=sdata
Updating ./.pt2/src/sdata clone (to revision main)
Running command git fetch -q --tags
Running command git reset --hard -q 8bce77d147033b3a5285b6d45ee85f33866964fc
Preparing metadata (setup.py) ... done
Installing collected packages: sdata
Attempting uninstall: sdata
Found existing installation: sdata 0.0.1
Uninstalling sdata-0.0.1:
Successfully uninstalled sdata-0.0.1
Running setup.py develop for sdata
Successfully installed sdata-0.0.1
(.pt2) (base) marco@marco-desktop:/media/marco/DATA/SOFTWARE/AI/Stability-AI/generative-models-main$ (.pt2) (base) marco@marco-desktop:/media/marco/DATA/SOFTWARE/AI/Stability-AI/generative-models-main$
bash: syntax error near unexpected token `('
(.pt2) (base) marco@marco-desktop:/media/marco/DATA/SOFTWARE/AI/Stability-AI/generative-models-main$ pip install diffusers transformers accelerate --upgrade
Collecting diffusers
Downloading diffusers-0.24.0-py3-none-any.whl.metadata (18 kB)
Requirement already satisfied: transformers in ./.pt2/lib/python3.10/site-packages (4.19.1)
Collecting transformers
Downloading transformers-4.35.2-py3-none-any.whl.metadata (123 kB)
βββββββββββββββββββββββββββββββββββββββ 123.5/123.5 kB 7.8 MB/s eta 0:00:00
Collecting accelerate
Downloading accelerate-0.25.0-py3-none-any.whl.metadata (18 kB)
Requirement already satisfied: Pillow in ./.pt2/lib/python3.10/site-packages (from diffusers) (10.1.0)
Requirement already satisfied: filelock in ./.pt2/lib/python3.10/site-packages (from diffusers) (3.13.1)
Requirement already satisfied: huggingface-hub>=0.19.4 in ./.pt2/lib/python3.10/site-packages (from diffusers) (0.19.4)
Requirement already satisfied: importlib-metadata in ./.pt2/lib/python3.10/site-packages (from diffusers) (6.11.0)
Requirement already satisfied: numpy in ./.pt2/lib/python3.10/site-packages (from diffusers) (1.26.2)
Requirement already satisfied: regex!=2019.12.17 in ./.pt2/lib/python3.10/site-packages (from diffusers) (2023.10.3)
Requirement already satisfied: requests in ./.pt2/lib/python3.10/site-packages (from diffusers) (2.31.0)
Requirement already satisfied: safetensors>=0.3.1 in ./.pt2/lib/python3.10/site-packages (from diffusers) (0.4.1)
Requirement already satisfied: packaging>=20.0 in ./.pt2/lib/python3.10/site-packages (from transformers) (23.2)
Requirement already satisfied: pyyaml>=5.1 in ./.pt2/lib/python3.10/site-packages (from transformers) (6.0.1)
Collecting tokenizers<0.19,>=0.14 (from transformers)
Downloading tokenizers-0.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.7 kB)
Requirement already satisfied: tqdm>=4.27 in ./.pt2/lib/python3.10/site-packages (from transformers) (4.66.1)
Requirement already satisfied: psutil in ./.pt2/lib/python3.10/site-packages (from accelerate) (5.9.6)
Requirement already satisfied: torch>=1.10.0 in ./.pt2/lib/python3.10/site-packages (from accelerate) (2.0.1)
Requirement already satisfied: fsspec>=2023.5.0 in ./.pt2/lib/python3.10/site-packages (from huggingface-hub>=0.19.4->diffusers) (2023.12.0)
Requirement already satisfied: typing-extensions>=3.7.4.3 in ./.pt2/lib/python3.10/site-packages (from huggingface-hub>=0.19.4->diffusers) (4.8.0)
Requirement already satisfied: sympy in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (1.12)
Requirement already satisfied: networkx in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (3.2.1)
Requirement already satisfied: jinja2 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (3.1.2)
Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (11.7.99)
Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (11.7.99)
Requirement already satisfied: nvidia-cuda-cupti-cu11==11.7.101 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (11.7.101)
Requirement already satisfied: nvidia-cudnn-cu11==8.5.0.96 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (8.5.0.96)
Requirement already satisfied: nvidia-cublas-cu11==11.10.3.66 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (11.10.3.66)
Requirement already satisfied: nvidia-cufft-cu11==10.9.0.58 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (10.9.0.58)
Requirement already satisfied: nvidia-curand-cu11==10.2.10.91 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (10.2.10.91)
Requirement already satisfied: nvidia-cusolver-cu11==11.4.0.1 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (11.4.0.1)
Requirement already satisfied: nvidia-cusparse-cu11==11.7.4.91 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (11.7.4.91)
Requirement already satisfied: nvidia-nccl-cu11==2.14.3 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (2.14.3)
Requirement already satisfied: nvidia-nvtx-cu11==11.7.91 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (11.7.91)
Requirement already satisfied: triton==2.0.0 in ./.pt2/lib/python3.10/site-packages (from torch>=1.10.0->accelerate) (2.0.0)
Requirement already satisfied: setuptools in ./.pt2/lib/python3.10/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch>=1.10.0->accelerate) (65.5.0)
Requirement already satisfied: wheel in ./.pt2/lib/python3.10/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch>=1.10.0->accelerate) (0.42.0)
Requirement already satisfied: cmake in ./.pt2/lib/python3.10/site-packages (from triton==2.0.0->torch>=1.10.0->accelerate) (3.27.9)
Requirement already satisfied: lit in ./.pt2/lib/python3.10/site-packages (from triton==2.0.0->torch>=1.10.0->accelerate) (17.0.6)
Requirement already satisfied: zipp>=0.5 in ./.pt2/lib/python3.10/site-packages (from importlib-metadata->diffusers) (3.17.0)
Requirement already satisfied: charset-normalizer<4,>=2 in ./.pt2/lib/python3.10/site-packages (from requests->diffusers) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in ./.pt2/lib/python3.10/site-packages (from requests->diffusers) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./.pt2/lib/python3.10/site-packages (from requests->diffusers) (1.26.18)
Requirement already satisfied: certifi>=2017.4.17 in ./.pt2/lib/python3.10/site-packages (from requests->diffusers) (2023.11.17)
Requirement already satisfied: MarkupSafe>=2.0 in ./.pt2/lib/python3.10/site-packages (from jinja2->torch>=1.10.0->accelerate) (2.1.3)
Requirement already satisfied: mpmath>=0.19 in ./.pt2/lib/python3.10/site-packages (from sympy->torch>=1.10.0->accelerate) (1.3.0)
Downloading diffusers-0.24.0-py3-none-any.whl (1.8 MB)
ββββββββββββββββββββββββββββββββββββββββ 1.8/1.8 MB 13.4 MB/s eta 0:00:00
Downloading transformers-4.35.2-py3-none-any.whl (7.9 MB)
ββββββββββββββββββββββββββββββββββββββββ 7.9/7.9 MB 13.2 MB/s eta 0:00:00
Downloading accelerate-0.25.0-py3-none-any.whl (265 kB)
ββββββββββββββββββββββββββββββββββββββββ 265.7/265.7 kB 14.4 MB/s eta 0:00:00
Downloading tokenizers-0.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB)
ββββββββββββββββββββββββββββββββββββββββ 3.8/3.8 MB 13.2 MB/s eta 0:00:00
Installing collected packages: tokenizers, diffusers, transformers, accelerate
Attempting uninstall: tokenizers
Found existing installation: tokenizers 0.12.1
Uninstalling tokenizers-0.12.1:
Successfully uninstalled tokenizers-0.12.1
Attempting uninstall: transformers
Found existing installation: transformers 4.19.1
Uninstalling transformers-4.19.1:
Successfully uninstalled transformers-4.19.1
Successfully installed accelerate-0.25.0 diffusers-0.24.0 tokenizers-0.15.0 transformers-4.35.2
(.pt2) (base) marco@marco-desktop:/media/marco/DATA/SOFTWARE/AI/Stability-AI/generative-models-main$ python
Python 3.10.10 (main, Mar 21 2023, 18:45:11) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
from diffusers import AutoPipelineForText2Image
import torch
pipe = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16")
model_index.json: 100%|ββββββββββββββββββββββββ| 685/685 [00:00<00:00, 9.91MB/s]
text_encoder_2/config.json: 100%|ββββββββββββββ| 575/575 [00:00<00:00, 7.71MB/s]
scheduler/scheduler_config.json: 100%|βββββββββ| 459/459 [00:00<00:00, 5.98MB/s]
text_encoder/config.json: 100%|ββββββββββββββββ| 565/565 [00:00<00:00, 7.36MB/s]
tokenizer/tokenizer_config.json: 100%|βββββββββ| 704/704 [00:00<00:00, 12.0MB/s]
tokenizer/merges.txt: 100%|ββββββββββββββββββ| 525k/525k [00:00<00:00, 9.97MB/s]
tokenizer/special_tokens_map.json: 100%|βββββββ| 586/586 [00:00<00:00, 7.88MB/s]
tokenizer_2/special_tokens_map.json: 100%|βββββ| 460/460 [00:00<00:00, 5.85MB/s]
tokenizer_2/tokenizer_config.json: 100%|βββββββ| 855/855 [00:00<00:00, 13.6MB/s]
unet/config.json: 100%|ββββββββββββββββββββ| 1.78k/1.78k [00:00<00:00, 22.2MB/s]
vae/config.json: 100%|βββββββββββββββββββββββββ| 607/607 [00:00<00:00, 8.75MB/s]
tokenizer/vocab.json: 100%|βββββββββββββββββ| 1.06M/1.06M [00:02<00:00, 486kB/s]
tokenizer_2/vocab.json: 100%|ββββββββββββββ| 1.06M/1.06M [00:00<00:00, 1.77MB/s]
diffusion_pytorch_model.fp16.safetensors: 100%|β| 167M/167M [00:29<00:00, 5.69MB
model.fp16.safetensors: 100%|ββββββββββββββββ| 246M/246M [01:13<00:00, 3.36MB/s]
model.fp16.safetensors: 100%|ββββββββββββββ| 1.39G/1.39G [04:05<00:00, 5.66MB/s]
diffusion_pytorch_model.fp16.safetensors: 100%|β| 5.14G/5.14G [08:51<00:00, 9.66
Fetching 18 files: 100%|ββββββββββββββββββββββββ| 18/18 [08:52<00:00, 29.57s/it]
Loading pipeline components...: 100%|βββββββββββββββββββββββββββββββββββββββ| 7/7 [00:01<00:00, 6.97it/s]
pipe.to("cuda")
StableDiffusionXLPipeline {
"_class_name": "StableDiffusionXLPipeline",
"_diffusers_version": "0.24.0",
"_name_or_path": "stabilityai/sdxl-turbo",
"feature_extractor": [
null,
null
],
"force_zeros_for_empty_prompt": true,
"image_encoder": [
null,
null
],
"scheduler": [
"diffusers",
"EulerAncestralDiscreteScheduler"
],
"text_encoder": [
"transformers",
"CLIPTextModel"
],
"text_encoder_2": [
"transformers",
"CLIPTextModelWithProjection"
],
"tokenizer": [
"transformers",
"CLIPTokenizer"
],
"tokenizer_2": [
"transformers",
"CLIPTokenizer"
],
"unet": [
"diffusers",
"UNet2DConditionModel"
],
"vae": [
"diffusers",
"AutoencoderKL"
]
}
prompt = "A cinematic shot of a baby racoon wearing an intricate italian priest robe."
image = pipe(prompt=prompt, num_inference_steps=1, guidance_scale=0.0).images[0]
100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:00<00:00, 1.89it/s]
you need to add "image" at the end
I am running it on google collab here you can try this updated code. It will save file as uuids
from diffusers import AutoPipelineForText2Image
import torch
import uuid
from PIL import Image
import cv2
pipe = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16")
pipe.to("cuda")
prompt = "Realistic photo of ..."
image = pipe(prompt=prompt, num_inference_steps=1, guidance_scale=0.0).images[0]
# Generate a unique file name based on the prompt
filename = str(uuid.uuid4()) + ".jpg"
# Save the image with the generated file name
image.save(filename)
print(f"Image saved as {filename}")
# Read the image
img = cv2.imread(filename)
# Display the image using Colab's cv2_imshow function
cv2_imshow(img)
Your code works, but you need a line
from google.colab.patches import cv2_imshow