You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
872 B
Batchfile
38 lines
872 B
Batchfile
@echo off
|
|
|
|
:: UNCOMMENT (remove ::) if you want the backend to automatically save files for you
|
|
set SAVE_FILES="1"
|
|
|
|
if not defined PYTHON (set PYTHON=python)
|
|
if not defined VENV_DIR (set VENV_DIR=venv)
|
|
|
|
set ERROR_REPORTING=FALSE
|
|
|
|
:: set PYTHON="%~dp0%VENV_DIR%\Scripts\Python.exe"
|
|
|
|
set DTYPE=float32
|
|
set CLIP_CONTEXTS=3
|
|
set AMP=1
|
|
set MODEL=stable-diffusion
|
|
set DEV=False
|
|
set MODEL_PATH=models/animefull-final-pruned
|
|
::these aren't actually used by the site?
|
|
::set MODULE_PATH=models/modules
|
|
::unclear if these are used either
|
|
::set PRIOR_PATH=models/vector_adjust_v2.pt
|
|
set ENABLE_EMA=1
|
|
set VAE_PATH=models/animevae.pt
|
|
set PENULTIMATE=1
|
|
set PYTHONDONTWRITEBYTECODE=1
|
|
set LOWVRAM=0
|
|
|
|
:: 队列大小
|
|
set QUEUE_MAX_SIZE=10
|
|
set QUEUE_RECOVERY_SIZE=6
|
|
|
|
:: 并行生成最多张数
|
|
set MAX_N_SAMPLES=100
|
|
|
|
%PYTHON% -m uvicorn --host 0.0.0.0 --port=6969 --workers 1 main:app
|
|
pause
|