We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121 Looking in indexes: https://download.pytorch.org/whl/cu121 Requirement already satisfied: torch in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (2.3.1+cu121) Requirement already satisfied: torchvision in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (0.18.1+cu121) Requirement already satisfied: filelock in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (3.13.1) Requirement already satisfied: typing-extensions>=4.8.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (4.9.0) Requirement already satisfied: sympy in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (1.12) Requirement already satisfied: networkx in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (3.2.1) Requirement already satisfied: jinja2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (3.1.3) Requirement already satisfied: fsspec in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (2024.2.0) Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (12.1.105) Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (12.1.105) Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (12.1.105) Requirement already satisfied: nvidia-cudnn-cu12==8.9.2.26 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (8.9.2.26) Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (12.1.3.1) Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (11.0.2.54) Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (10.3.2.106) Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (11.4.5.107) Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (12.1.0.106) Requirement already satisfied: nvidia-nccl-cu12==2.20.5 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (2.20.5) Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (12.1.105) Requirement already satisfied: triton==2.3.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (2.3.1) Requirement already satisfied: nvidia-nvjitlink-cu12 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from nvidia-cusolver-cu12==11.4.5.107->torch) (12.1.105) Requirement already satisfied: numpy in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torchvision) (1.26.3) Requirement already satisfied: pillow!=8.3.,>=5.3.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torchvision) (10.2.0) Requirement already satisfied: MarkupSafe>=2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from jinja2->torch) (2.1.5) Requirement already satisfied: mpmath>=0.19 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from sympy->torch) (1.3.0) (omost) [debian@debian Omost]$ pip install -r requirements.txt Requirement already satisfied: diffusers==0.28.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (0.28.0) Collecting transformers==4.41.1 (from -r requirements.txt (line 2)) Using cached transformers-4.41.1-py3-none-any.whl.metadata (43 kB) Requirement already satisfied: gradio==4.31.5 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (4.31.5) Requirement already satisfied: bitsandbytes==0.43.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 4)) (0.43.1) Requirement already satisfied: accelerate==0.30.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 5)) (0.30.1) Requirement already satisfied: protobuf==3.20 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 6)) (3.20.0) Requirement already satisfied: opencv-python in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 7)) (4.10.0.84) Requirement already satisfied: tensorboardX in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 8)) (2.6.2.2) Requirement already satisfied: safetensors in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 9)) (0.4.3) Requirement already satisfied: pillow in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 10)) (10.2.0) Requirement already satisfied: einops in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 11)) (0.8.0) Requirement already satisfied: torch in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 12)) (2.3.1+cu121) Requirement already satisfied: peft in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 13)) (0.11.1) Requirement already satisfied: importlib-metadata in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from diffusers==0.28.0->-r requirements.txt (line 1)) (8.0.0) Requirement already satisfied: filelock in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from diffusers==0.28.0->-r requirements.txt (line 1)) (3.13.1) Requirement already satisfied: huggingface-hub>=0.20.2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from diffusers==0.28.0->-r requirements.txt (line 1)) (0.23.4) Requirement already satisfied: numpy in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from diffusers==0.28.0->-r requirements.txt (line 1)) (1.26.3) Requirement already satisfied: regex!=2019.12.17 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from diffusers==0.28.0->-r requirements.txt (line 1)) (2024.5.15) Requirement already satisfied: requests in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from diffusers==0.28.0->-r requirements.txt (line 1)) (2.32.3) Requirement already satisfied: packaging>=20.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from transformers==4.41.1->-r requirements.txt (line 2)) (24.1) Requirement already satisfied: pyyaml>=5.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from transformers==4.41.1->-r requirements.txt (line 2)) (6.0.1) Requirement already satisfied: tokenizers<0.20,>=0.19 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from transformers==4.41.1->-r requirements.txt (line 2)) (0.19.1) Requirement already satisfied: tqdm>=4.27 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from transformers==4.41.1->-r requirements.txt (line 2)) (4.66.4) Requirement already satisfied: aiofiles<24.0,>=22.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (23.2.1) Requirement already satisfied: altair<6.0,>=4.2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (5.3.0) Requirement already satisfied: fastapi in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.111.0) Requirement already satisfied: ffmpy in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.3.2) Requirement already satisfied: gradio-client==0.16.4 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.16.4) Requirement already satisfied: httpx>=0.24.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.27.0) Requirement already satisfied: importlib-resources<7.0,>=1.3 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (6.4.0) Requirement already satisfied: jinja2<4.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (3.1.3) Requirement already satisfied: markupsafe~=2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (2.1.5) Requirement already satisfied: matplotlib~=3.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (3.9.0) Requirement already satisfied: orjson~=3.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (3.10.6) Requirement already satisfied: pandas<3.0,>=1.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (2.2.2) Requirement already satisfied: pydantic>=2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (2.8.1) Requirement already satisfied: pydub in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.25.1) Requirement already satisfied: python-multipart>=0.0.9 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.0.9) Requirement already satisfied: ruff>=0.2.2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.5.0) Requirement already satisfied: semantic-version~=2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (2.10.0) Requirement already satisfied: tomlkit==0.12.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.12.0) Requirement already satisfied: typer<1.0,>=0.12 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.12.3) Requirement already satisfied: typing-extensions~=4.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (4.9.0) Requirement already satisfied: urllib3~=2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (2.2.2) Requirement already satisfied: uvicorn>=0.14.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.30.1) Requirement already satisfied: psutil in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from accelerate==0.30.1->-r requirements.txt (line 5)) (6.0.0) Requirement already satisfied: fsspec in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio-client==0.16.4->gradio==4.31.5->-r requirements.txt (line 3)) (2024.2.0) Requirement already satisfied: websockets<12.0,>=10.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio-client==0.16.4->gradio==4.31.5->-r requirements.txt (line 3)) (11.0.3) Requirement already satisfied: sympy in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (1.12) Requirement already satisfied: networkx in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (3.2.1) Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (12.1.105) Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (12.1.105) Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (12.1.105) Requirement already satisfied: nvidia-cudnn-cu12==8.9.2.26 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (8.9.2.26) Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (12.1.3.1) Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (11.0.2.54) Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (10.3.2.106) Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (11.4.5.107) Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (12.1.0.106) Requirement already satisfied: nvidia-nccl-cu12==2.20.5 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (2.20.5) Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (12.1.105) Requirement already satisfied: triton==2.3.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (2.3.1) Requirement already satisfied: nvidia-nvjitlink-cu12 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from nvidia-cusolver-cu12==11.4.5.107->torch->-r requirements.txt (line 12)) (12.1.105) Requirement already satisfied: jsonschema>=3.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from altair<6.0,>=4.2.0->gradio==4.31.5->-r requirements.txt (line 3)) (4.22.0) Requirement already satisfied: toolz in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from altair<6.0,>=4.2.0->gradio==4.31.5->-r requirements.txt (line 3)) (0.12.1) Requirement already satisfied: anyio in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (4.4.0) Requirement already satisfied: certifi in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (2024.7.4) Requirement already satisfied: httpcore==1. in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (1.0.5) Requirement already satisfied: idna in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (3.7) Requirement already satisfied: sniffio in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (1.3.1) Requirement already satisfied: h11<0.15,>=0.13 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from httpcore==1.*->httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (0.14.0) Requirement already satisfied: contourpy>=1.0.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (1.2.1) Requirement already satisfied: cycler>=0.10 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (4.53.0) Requirement already satisfied: kiwisolver>=1.3.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (1.4.5) Requirement already satisfied: pyparsing>=2.3.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (3.1.2) Requirement already satisfied: python-dateutil>=2.7 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (2.9.0.post0) Requirement already satisfied: pytz>=2020.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio==4.31.5->-r requirements.txt (line 3)) (2024.1) Requirement already satisfied: tzdata>=2022.7 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio==4.31.5->-r requirements.txt (line 3)) (2024.1) Requirement already satisfied: annotated-types>=0.4.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from pydantic>=2.0->gradio==4.31.5->-r requirements.txt (line 3)) (0.7.0) Requirement already satisfied: pydantic-core==2.20.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from pydantic>=2.0->gradio==4.31.5->-r requirements.txt (line 3)) (2.20.1) Requirement already satisfied: click>=8.0.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from typer<1.0,>=0.12->gradio==4.31.5->-r requirements.txt (line 3)) (8.1.7) Requirement already satisfied: shellingham>=1.3.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from typer<1.0,>=0.12->gradio==4.31.5->-r requirements.txt (line 3)) (1.5.4) Requirement already satisfied: rich>=10.11.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from typer<1.0,>=0.12->gradio==4.31.5->-r requirements.txt (line 3)) (13.7.1) Requirement already satisfied: starlette<0.38.0,>=0.37.2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (0.37.2) Requirement already satisfied: fastapi-cli>=0.0.2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (0.0.4) Requirement already satisfied: ujson!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,>=4.0.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (5.10.0) Requirement already satisfied: email_validator>=2.0.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (2.2.0) Requirement already satisfied: zipp>=0.5 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from importlib-metadata->diffusers==0.28.0->-r requirements.txt (line 1)) (3.19.2) Requirement already satisfied: charset-normalizer<4,>=2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from requests->diffusers==0.28.0->-r requirements.txt (line 1)) (3.3.2) Requirement already satisfied: mpmath>=0.19 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from sympy->torch->-r requirements.txt (line 12)) (1.3.0) Requirement already satisfied: dnspython>=2.0.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from email_validator>=2.0.0->fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (2.6.1) Requirement already satisfied: attrs>=22.2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==4.31.5->-r requirements.txt (line 3)) (23.2.0) Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==4.31.5->-r requirements.txt (line 3)) (2023.12.1) Requirement already satisfied: referencing>=0.28.4 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==4.31.5->-r requirements.txt (line 3)) (0.35.1) Requirement already satisfied: rpds-py>=0.7.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==4.31.5->-r requirements.txt (line 3)) (0.18.1) Requirement already satisfied: six>=1.5 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (1.16.0) Requirement already satisfied: markdown-it-py>=2.2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio==4.31.5->-r requirements.txt (line 3)) (3.0.0) Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio==4.31.5->-r requirements.txt (line 3)) (2.18.0) Requirement already satisfied: exceptiongroup>=1.0.2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from anyio->httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (1.2.1) Requirement already satisfied: httptools>=0.5.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from uvicorn[standard]>=0.12.0->fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (0.6.1) Requirement already satisfied: python-dotenv>=0.13 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from uvicorn[standard]>=0.12.0->fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (1.0.1) Requirement already satisfied: uvloop!=0.15.0,!=0.15.1,>=0.14.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from uvicorn[standard]>=0.12.0->fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (0.19.0) Requirement already satisfied: watchfiles>=0.13 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from uvicorn[standard]>=0.12.0->fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (0.22.0) Requirement already satisfied: mdurl~=0.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio==4.31.5->-r requirements.txt (line 3)) (0.1.2) Using cached transformers-4.41.1-py3-none-any.whl (9.1 MB) Installing collected packages: transformers Attempting uninstall: transformers Found existing installation: transformers 4.42.3 Uninstalling transformers-4.42.3: Successfully uninstalled transformers-4.42.3 Successfully installed transformers-4.41.1 (omost) [debian@debian Omost]$ python gradio_app.py /home/debian/.conda/envs/omost/lib/python3.10/site-packages/torch/cuda/init.py:619: UserWarning: Can't initialize NVML warnings.warn("Can't initialize NVML") Traceback (most recent call last): File "/run/media/debian/3351ca35-2afa-4358-ab9d-e457700c259f/AI与人工智能/文本生成图片/Omost/gradio_app.py", line 45, in text_encoder = CLIPTextModel.from_pretrained( File "/home/debian/.conda/envs/omost/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3531, in from_pretrained with safe_open(resolved_archive_file, framework="pt") as f: safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge 上面是运行的结果,下载模型到本地也不能运行
The text was updated successfully, but these errors were encountered:
No branches or pull requests
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
Looking in indexes: https://download.pytorch.org/whl/cu121
Requirement already satisfied: torch in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (2.3.1+cu121)
Requirement already satisfied: torchvision in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (0.18.1+cu121)
Requirement already satisfied: filelock in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (3.13.1)
Requirement already satisfied: typing-extensions>=4.8.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (4.9.0)
Requirement already satisfied: sympy in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (1.12)
Requirement already satisfied: networkx in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (3.2.1)
Requirement already satisfied: jinja2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (3.1.3)
Requirement already satisfied: fsspec in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (2024.2.0)
Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (12.1.105)
Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (12.1.105)
Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (12.1.105)
Requirement already satisfied: nvidia-cudnn-cu12==8.9.2.26 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (8.9.2.26)
Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (12.1.3.1)
Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (11.0.2.54)
Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (10.3.2.106)
Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (11.4.5.107)
Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (12.1.0.106)
Requirement already satisfied: nvidia-nccl-cu12==2.20.5 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (2.20.5)
Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (12.1.105)
Requirement already satisfied: triton==2.3.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch) (2.3.1)
Requirement already satisfied: nvidia-nvjitlink-cu12 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from nvidia-cusolver-cu12==11.4.5.107->torch) (12.1.105)
Requirement already satisfied: numpy in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torchvision) (1.26.3)
Requirement already satisfied: pillow!=8.3.,>=5.3.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torchvision) (10.2.0)
Requirement already satisfied: MarkupSafe>=2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from jinja2->torch) (2.1.5)
Requirement already satisfied: mpmath>=0.19 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from sympy->torch) (1.3.0)
(omost) [debian@debian Omost]$ pip install -r requirements.txt
Requirement already satisfied: diffusers==0.28.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (0.28.0)
Collecting transformers==4.41.1 (from -r requirements.txt (line 2))
Using cached transformers-4.41.1-py3-none-any.whl.metadata (43 kB)
Requirement already satisfied: gradio==4.31.5 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (4.31.5)
Requirement already satisfied: bitsandbytes==0.43.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 4)) (0.43.1)
Requirement already satisfied: accelerate==0.30.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 5)) (0.30.1)
Requirement already satisfied: protobuf==3.20 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 6)) (3.20.0)
Requirement already satisfied: opencv-python in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 7)) (4.10.0.84)
Requirement already satisfied: tensorboardX in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 8)) (2.6.2.2)
Requirement already satisfied: safetensors in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 9)) (0.4.3)
Requirement already satisfied: pillow in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 10)) (10.2.0)
Requirement already satisfied: einops in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 11)) (0.8.0)
Requirement already satisfied: torch in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 12)) (2.3.1+cu121)
Requirement already satisfied: peft in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from -r requirements.txt (line 13)) (0.11.1)
Requirement already satisfied: importlib-metadata in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from diffusers==0.28.0->-r requirements.txt (line 1)) (8.0.0)
Requirement already satisfied: filelock in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from diffusers==0.28.0->-r requirements.txt (line 1)) (3.13.1)
Requirement already satisfied: huggingface-hub>=0.20.2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from diffusers==0.28.0->-r requirements.txt (line 1)) (0.23.4)
Requirement already satisfied: numpy in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from diffusers==0.28.0->-r requirements.txt (line 1)) (1.26.3)
Requirement already satisfied: regex!=2019.12.17 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from diffusers==0.28.0->-r requirements.txt (line 1)) (2024.5.15)
Requirement already satisfied: requests in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from diffusers==0.28.0->-r requirements.txt (line 1)) (2.32.3)
Requirement already satisfied: packaging>=20.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from transformers==4.41.1->-r requirements.txt (line 2)) (24.1)
Requirement already satisfied: pyyaml>=5.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from transformers==4.41.1->-r requirements.txt (line 2)) (6.0.1)
Requirement already satisfied: tokenizers<0.20,>=0.19 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from transformers==4.41.1->-r requirements.txt (line 2)) (0.19.1)
Requirement already satisfied: tqdm>=4.27 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from transformers==4.41.1->-r requirements.txt (line 2)) (4.66.4)
Requirement already satisfied: aiofiles<24.0,>=22.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (23.2.1)
Requirement already satisfied: altair<6.0,>=4.2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (5.3.0)
Requirement already satisfied: fastapi in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.111.0)
Requirement already satisfied: ffmpy in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.3.2)
Requirement already satisfied: gradio-client==0.16.4 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.16.4)
Requirement already satisfied: httpx>=0.24.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.27.0)
Requirement already satisfied: importlib-resources<7.0,>=1.3 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (6.4.0)
Requirement already satisfied: jinja2<4.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (3.1.3)
Requirement already satisfied: markupsafe~=2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (2.1.5)
Requirement already satisfied: matplotlib~=3.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (3.9.0)
Requirement already satisfied: orjson~=3.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (3.10.6)
Requirement already satisfied: pandas<3.0,>=1.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (2.2.2)
Requirement already satisfied: pydantic>=2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (2.8.1)
Requirement already satisfied: pydub in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.25.1)
Requirement already satisfied: python-multipart>=0.0.9 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.0.9)
Requirement already satisfied: ruff>=0.2.2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.5.0)
Requirement already satisfied: semantic-version~=2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (2.10.0)
Requirement already satisfied: tomlkit==0.12.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.12.0)
Requirement already satisfied: typer<1.0,>=0.12 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.12.3)
Requirement already satisfied: typing-extensions~=4.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (4.9.0)
Requirement already satisfied: urllib3~=2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (2.2.2)
Requirement already satisfied: uvicorn>=0.14.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio==4.31.5->-r requirements.txt (line 3)) (0.30.1)
Requirement already satisfied: psutil in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from accelerate==0.30.1->-r requirements.txt (line 5)) (6.0.0)
Requirement already satisfied: fsspec in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio-client==0.16.4->gradio==4.31.5->-r requirements.txt (line 3)) (2024.2.0)
Requirement already satisfied: websockets<12.0,>=10.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from gradio-client==0.16.4->gradio==4.31.5->-r requirements.txt (line 3)) (11.0.3)
Requirement already satisfied: sympy in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (1.12)
Requirement already satisfied: networkx in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (3.2.1)
Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (12.1.105)
Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (12.1.105)
Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (12.1.105)
Requirement already satisfied: nvidia-cudnn-cu12==8.9.2.26 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (8.9.2.26)
Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (12.1.3.1)
Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (11.0.2.54)
Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (10.3.2.106)
Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (11.4.5.107)
Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (12.1.0.106)
Requirement already satisfied: nvidia-nccl-cu12==2.20.5 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (2.20.5)
Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (12.1.105)
Requirement already satisfied: triton==2.3.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from torch->-r requirements.txt (line 12)) (2.3.1)
Requirement already satisfied: nvidia-nvjitlink-cu12 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from nvidia-cusolver-cu12==11.4.5.107->torch->-r requirements.txt (line 12)) (12.1.105)
Requirement already satisfied: jsonschema>=3.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from altair<6.0,>=4.2.0->gradio==4.31.5->-r requirements.txt (line 3)) (4.22.0)
Requirement already satisfied: toolz in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from altair<6.0,>=4.2.0->gradio==4.31.5->-r requirements.txt (line 3)) (0.12.1)
Requirement already satisfied: anyio in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (4.4.0)
Requirement already satisfied: certifi in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (2024.7.4)
Requirement already satisfied: httpcore==1. in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (1.0.5)
Requirement already satisfied: idna in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (3.7)
Requirement already satisfied: sniffio in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (1.3.1)
Requirement already satisfied: h11<0.15,>=0.13 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from httpcore==1.*->httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (0.14.0)
Requirement already satisfied: contourpy>=1.0.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (1.2.1)
Requirement already satisfied: cycler>=0.10 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (4.53.0)
Requirement already satisfied: kiwisolver>=1.3.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (1.4.5)
Requirement already satisfied: pyparsing>=2.3.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (3.1.2)
Requirement already satisfied: python-dateutil>=2.7 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio==4.31.5->-r requirements.txt (line 3)) (2024.1)
Requirement already satisfied: tzdata>=2022.7 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio==4.31.5->-r requirements.txt (line 3)) (2024.1)
Requirement already satisfied: annotated-types>=0.4.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from pydantic>=2.0->gradio==4.31.5->-r requirements.txt (line 3)) (0.7.0)
Requirement already satisfied: pydantic-core==2.20.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from pydantic>=2.0->gradio==4.31.5->-r requirements.txt (line 3)) (2.20.1)
Requirement already satisfied: click>=8.0.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from typer<1.0,>=0.12->gradio==4.31.5->-r requirements.txt (line 3)) (8.1.7)
Requirement already satisfied: shellingham>=1.3.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from typer<1.0,>=0.12->gradio==4.31.5->-r requirements.txt (line 3)) (1.5.4)
Requirement already satisfied: rich>=10.11.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from typer<1.0,>=0.12->gradio==4.31.5->-r requirements.txt (line 3)) (13.7.1)
Requirement already satisfied: starlette<0.38.0,>=0.37.2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (0.37.2)
Requirement already satisfied: fastapi-cli>=0.0.2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (0.0.4)
Requirement already satisfied: ujson!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,>=4.0.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (5.10.0)
Requirement already satisfied: email_validator>=2.0.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (2.2.0)
Requirement already satisfied: zipp>=0.5 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from importlib-metadata->diffusers==0.28.0->-r requirements.txt (line 1)) (3.19.2)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from requests->diffusers==0.28.0->-r requirements.txt (line 1)) (3.3.2)
Requirement already satisfied: mpmath>=0.19 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from sympy->torch->-r requirements.txt (line 12)) (1.3.0)
Requirement already satisfied: dnspython>=2.0.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from email_validator>=2.0.0->fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (2.6.1)
Requirement already satisfied: attrs>=22.2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==4.31.5->-r requirements.txt (line 3)) (23.2.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==4.31.5->-r requirements.txt (line 3)) (2023.12.1)
Requirement already satisfied: referencing>=0.28.4 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==4.31.5->-r requirements.txt (line 3)) (0.35.1)
Requirement already satisfied: rpds-py>=0.7.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==4.31.5->-r requirements.txt (line 3)) (0.18.1)
Requirement already satisfied: six>=1.5 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio==4.31.5->-r requirements.txt (line 3)) (1.16.0)
Requirement already satisfied: markdown-it-py>=2.2.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio==4.31.5->-r requirements.txt (line 3)) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio==4.31.5->-r requirements.txt (line 3)) (2.18.0)
Requirement already satisfied: exceptiongroup>=1.0.2 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from anyio->httpx>=0.24.1->gradio==4.31.5->-r requirements.txt (line 3)) (1.2.1)
Requirement already satisfied: httptools>=0.5.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from uvicorn[standard]>=0.12.0->fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (0.6.1)
Requirement already satisfied: python-dotenv>=0.13 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from uvicorn[standard]>=0.12.0->fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (1.0.1)
Requirement already satisfied: uvloop!=0.15.0,!=0.15.1,>=0.14.0 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from uvicorn[standard]>=0.12.0->fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (0.19.0)
Requirement already satisfied: watchfiles>=0.13 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from uvicorn[standard]>=0.12.0->fastapi->gradio==4.31.5->-r requirements.txt (line 3)) (0.22.0)
Requirement already satisfied: mdurl~=0.1 in /home/debian/.conda/envs/omost/lib/python3.10/site-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio==4.31.5->-r requirements.txt (line 3)) (0.1.2)
Using cached transformers-4.41.1-py3-none-any.whl (9.1 MB)
Installing collected packages: transformers
Attempting uninstall: transformers
Found existing installation: transformers 4.42.3
Uninstalling transformers-4.42.3:
Successfully uninstalled transformers-4.42.3
Successfully installed transformers-4.41.1
(omost) [debian@debian Omost]$ python gradio_app.py
/home/debian/.conda/envs/omost/lib/python3.10/site-packages/torch/cuda/init.py:619: UserWarning: Can't initialize NVML
warnings.warn("Can't initialize NVML")
Traceback (most recent call last):
File "/run/media/debian/3351ca35-2afa-4358-ab9d-e457700c259f/AI与人工智能/文本生成图片/Omost/gradio_app.py", line 45, in
text_encoder = CLIPTextModel.from_pretrained(
File "/home/debian/.conda/envs/omost/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3531, in from_pretrained
with safe_open(resolved_archive_file, framework="pt") as f:
safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge
上面是运行的结果,下载模型到本地也不能运行
The text was updated successfully, but these errors were encountered: