Open s87343472 opened 1 month ago
中文版本
conda create -n paints_undo python=3.10
conda activate paints_undo
(paints_undo)
开头。conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
git clone https://github.com/lllyasviel/Paints-UNDO.git cd Paints-UNDO
pip install xformers
pip install -r requirements.txt
pip uninstall huggingface_hub gradio gradio-client transformers diffusers peft tokenizers httpx httpcore
pip install huggingface_hub==0.23.2 pip install gradio==3.1.4 pip install gradio_client==0.1.3 pip install transformers==4.23.1 pip install diffusers==0.3.0 pip install peft==0.2.0 pip install tokenizers==0.13.2 pip install httpx==0.23.0 pip install httpcore==0.15.0
python -c "import torch; print(torch.cuda.is_available())"
True
:python gradio_app.py
http://127.0.0.1:7860
,你可以在浏览器中打开这个地址来访问应用程序。
Open Anaconda Powershell Prompt (miniconda3)
Create and activate the Conda environment
Expected result: After successfully creating the environment, you will see output similar to the following:
...
done
To activate this environment, use
$ conda activate paints_undo
To deactivate an active environment, use
$ conda deactivate
Expected result: After successfully activating the environment, the command prompt will start with
(paints_undo)
.Install PyTorch and related libraries
Expected result: After successful installation, you will see output similar to the following:
...
Proceed ([y]/n)? y
...
done
Clone and enter the project directory
Expected result: After successfully cloning, you will see output similar to the following:
Cloning into 'Paints-UNDO'...
...
Install project dependencies
Expected result: After successful installation, you will see output similar to the following:
...
Successfully installed xformers-
Expected result: After successful installation, you will see output similar to the following:
...
Successfully installed
Resolve dependency conflicts
Expected result: After successful uninstallation, you will see output similar to the following:
...
Successfully uninstalled
Expected result: After successful installation, you will see output similar to the following:
...
Successfully installed
Verify if CUDA is available
Expected result: If CUDA is available, you will see the output
True
:True
Run the application
Expected result: If everything is correct, the Gradio application will start, and a local server address such as
http://127.0.0.1:7860
will be displayed in the command line, which you can open in a browser to access the application.