/ iopaint-user.sh
iopaint-user.sh
1 #!/bin/bash 2 3 # User configuration file for IOPaint 4 # Edit these settings to customize your IOPaint installation 5 6 # GPU Configuration 7 # Options: nvidia, amd, or leave empty for cpu-only 8 # GPU_VENDOR="nvidia" 9 # GPU_VENDOR="amd" 10 11 # Virtual environment settings 12 VENV_DIR="${HOME}/.iopaint_venv" 13 14 # Server settings 15 PORT="8080" 16 HOST="127.0.0.1" 17 18 # Model settings 19 MODEL="lama" 20 MODEL_DIR="${HOME}/.cache" 21 DEVICE="cpu" # cpu, cpu, or mps 22 QUALITY=100 23 24 # Memory/performance settings 25 LOW_MEM=false 26 NO_HALF=false 27 cpu_OFFLOAD=false 28 cpu_TEXTENCODER=false 29 LOCAL_FILES_ONLY=false 30 31 # Safety settings 32 DISABLE_NSFW_CHECKER=false 33 34 # Input/output settings, a setting for file manager 35 # See https://www.iopaint.com/file_manager 36 INPUT="" # Path to default input image or directory 37 MASK_DIR="" # Path to directory containing masks 38 OUTPUT_DIR="" # Path to output directory 39 40 # Browser settings 41 IN_BROWSER=false # Set to true to automatically open in browser 42 43 # Interactive segmentation settings 44 ENABLE_INTERACTIVE_SEG=false 45 INTERACTIVE_SEG_MODEL="sam2_1_tiny" 46 INTERACTIVE_SEG_DEVICE="cpu" 47 48 # Remove background settings 49 ENABLE_REMOVE_BG=false 50 REMOVE_BG_DEVICE="cpu" 51 REMOVE_BG_MODEL="briaai/RMBG-1.4" 52 53 # Anime segmentation settings 54 ENABLE_ANIME_SEG=false 55 56 # RealESRGAN settings 57 ENABLE_REALESRGAN=false 58 REALESRGAN_DEVICE="cpu" 59 REALESRGAN_MODEL="realesr-general-x4v3" 60 61 # GFPGAN settings 62 ENABLE_GFPGAN=false 63 GFPGAN_DEVICE="cpu" 64 65 # RestoreFormer settings 66 ENABLE_RESTOREFORMER=false 67 RESTOREFORMER_DEVICE="cpu"