提卡的網(wǎng)站怎么做查網(wǎng)站權(quán)重
PhotoMaker只需要一張人臉照片就可以生成不同風(fēng)格的人物照片,可以快速出圖,無需額外的LoRA培訓(xùn)。
安裝環(huán)境
- python 3.10
- git
- Visual Studio 2022
安裝依賴庫
git clone https://github.com/bmaltais/PhotoMaker.git
cd PhotoMaker
python -m venv venv
.\venv\Scripts\activate
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --index-url https://download.pytorch.org/whl/cu118
pip install -r requirements-windows.txt
設(shè)置模型鏡像
set HF_ENDPOINT=https://hf-mirror.com
?啟動(dòng)項(xiàng)目
.\gui.bat
使用步驟:
1、添加人臉照片,一張圖片就可以,但越多越好。雖然PhotoMaker不進(jìn)行人臉檢測,但上傳圖像中的人臉應(yīng)該占據(jù)圖像的大部分。
2、輸入提示詞,確保在要加上觸發(fā)詞:img,例如:man img或woman img或girl img。
3、選擇樣式模板。
4、單擊“提交”按鈕開始自定義。
?