/ README.md
README.md
1 # IOpaint Launcher 2 a launcher written in shell for IOpaint 3 4 5 See: 6 7 https://www.iopaint.com/ 8 9 10 |Erase([LaMa](https://www.iopaint.com/models/erase/lama))|Replace Object([PowerPaint](https://www.iopaint.com/models/diffusion/powerpaint))| 11 |-----|----| 12 |<video src="https://github.com/Sanster/IOPaint/assets/3998421/264bc27c-0abd-4d8b-bb1e-0078ab264c4a"> | <video src="https://github.com/Sanster/IOPaint/assets/3998421/1de5c288-e0e1-4f32-926d-796df0655846">| 13 14 |Draw Text([AnyText](https://www.iopaint.com/models/diffusion/anytext))|Out-painting([PowerPaint](https://www.iopaint.com/models/diffusion/powerpaint))| 15 |---------|-----------| 16 |<video src="https://github.com/Sanster/IOPaint/assets/3998421/ffd4eda4-f7d4-4693-93d8-d2cd5aa7c6d6">|<video src="https://github.com/Sanster/IOPaint/assets/3998421/c4af8aef-8c29-49e0-96eb-0aae2f768da2">| 17 18 19 To install requirements for plugins do the following after running the script: 20 21 source ${HOME}/.iopaint_venv/bin/activate && pip3 install onnxruntime rembg && deactivate 22 23 # Troubleshooting 24 25 ## Nvidia 26 27 source ${HOME}/.iopaint_venv/bin/activate && pip3 install torch==2.1.2 torchvision==0.16.2 --index-url https://download.pytorch.org/whl/cu118 && deactivate 28 29 ## AMD 30 31 source ${HOME}/.iopaint_venv/bin/activate && pip3 install torch==2.1.2 torchvision==0.16.2 --index-url https://download.pytorch.org/whl/rocm5.6 && deactivate 32 33 Remember to delete the venv before switching devices; read below. 34 35 36 ## to remove the venv CAUTION! points to home $DIR: 37 38 sudo rm -r ${HOME}/.iopaint_venv 39 40 # If moving to /usr/bin 41 42 * simply mv iopaint.sh as iopaint 43 44 * Keep iopaint-user.sh as is, unless if you edit options. 45 46 * Chown and chmod +x both scripts 47 48 * ??? 49 50 * Profit 51 52 53 see iopaint-user.sh inside the repo for the usage. 54 55 When enabling AMD you'll need to just use CPU as cuda is nvidia inside iopaint-user.sh, this contains the config and everything you may possibly need.