๐ง 1. ์ฌ์ ์ค๋น
ํ๊ฒฝ: Microsoft Azure ์ฌ์ฉ
๋จธ์ ์ฌ์: Tesla T4 GPU ํฌํจ Ubuntu 22.04 LTS VM
๋์คํฌ: ์ถฉ๋ถํ ์ ์ฅ ์ฉ๋ ํ๋ณด (๋ชจ๋ธ ๋ฐ ์์ฑ ์ด๋ฏธ์ง ์ ์ฅ์ฉ)
โ๏ธ 2. Azure ํ๊ฒฝ ๊ตฌ์ฑ
Azure ๋ฆฌ์์ค ๊ทธ๋ฃน ์์ฑ
Azure ML Studio ์ํฌ์คํ์ด์ค ์์ฑ
GPU Compute Instance ์์ฑ
SSH ํค ๋ฐ๊ธ ๋ฐ ์ ์
ssh -i <ํค ๊ฒฝ๋ก>.pem azureuser@<VM_IP> -p <ํฌํธ๋ฒํธ>
๐งฑ 3. WebUI ์ค์น ์ค๋น
Conda ํ๊ฒฝ ๊ตฌ์ฑ
conda create -n webui-forge python=3.10
conda activate webui-forge
WebUI Forge ํด๋ก
git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git
cd stable-diffusion-webui-forge
๋ชจ๋ธ ๋ฐ ์ ์ค์ผ์ผ๋ฌ ๋ค์ด๋ก๋
# Checkpoint ๋ฐ VAE๋ ๋ฏธ๋ฆฌ ๋ค์ด๋ก๋ํ์ฌ /models ํด๋์ ์์น
curl -L -o 4x_foolhardy_Remacri.pth \\ https://huggingface.co/FacehugmanIII/4x_foolhardy_Remacri/resolve/main/4x_foolhardy_Remacri.pth
mv 4x_foolhardy_Remacri.pth models/ESRGAN/
ํ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค์น
pip install basicsr facexlib gfpgan
์ ์ ์ฃผ์
Local: http://127.0.0.1:7860
Public: https://xxxxx.gradio.live
์ด๋ฏธ์ง ์์ฑ ๋ฐ ์
์ค์ผ์ผ
Sampler: DPM++ 2M Karras
Hi-res fix: 4x_foolhardy_Remacri ์ฌ์ฉ
Output: /outputs ํด๋์ ์ ์ฅ๋จ
๊ฒฐ๊ณผ ๋ค์ด๋ก๋
PC๋ก ๊ฒฐ๊ณผ ์ด๋ฏธ์ง zip ํ์ผ ์ ์ก
scp -i C:\\####.pem -P 50000 azureuser@<VM_IP>:/home/azureuser/stable-diffusion-webui-forge/outputs/output.zip .