-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Guide] Using an AMD GPU #106
Comments
great! may I ask two question:
|
Performance should be very similar to what you would get with a comparable Nvidia GPU. |
After following this guide I just get:
Perhaps something has changed in these many months? On Debian 12 |
I don't believe anything has changed other than ROCm 5.6 being the default version now, make sure ROCm is properly installed for your distribution, you may have some trouble with Debian although there is a few guides around such as this. |
Yeah this happens to me too. |
I've just installed it today taking notes: Installation for AMD GPU-s on linuxTested on Debian 12 (bookworm) with RX 6700 XT. Prerequisites
|
import setuptools package_files = Path("iopaint/web_app").glob("**/*") with open("README.md", "r", encoding="utf-8") as fh: def load_requirements(): https://setuptools.readthedocs.io/en/latest/setuptools.html#including-data-filessetuptools.setup( if name == "main": *.py[co] docs/index.md PyCharm IDE.idea#!/usr/bin/env python coding: utf-8"""
""" def sort_blocks():
def main():
if name == "main": *.py[co] docs/index.md PyCharm IDE.ideahttps://tieba.baidu.com/p/1890266873?tid=1890266873&threadType=1040&jump_type=pbPage&jump_tieba_native=1 |
Leaving this here for anyone wanting to use it with an AMD GPU.
Tested working with Python 3.10.8 Arch Linux, AMD RX 6650XT.
Installing
Install ROCm on your system, how you do this is going to vary with distribution, so search for how to install for your specific distribution, Windows or OSX I have no idea sorry, Arch users go here.
Create python virtual environment
python -m venv venv
Activate environment
source venv/bin/activate
Make sure pip and wheel is latest version
pip install --upgrade pip wheel
Install lama cleaner
pip install lama-cleaner
Install Torch ROCm 5.2 for AMD GPU support
pip install torch --extra-index-url https://download.pytorch.org/whl/rocm5.2/ --force
Remove cached packages if desired
pip cache purge
Run
lama-cleaner --model=lama --device=cuda --port=8080
Launching next time
source venv/bin/activate
lama-cleaner --model=lama --device=cuda --port=8080
Navi 23
Navi 23 (gfx1032) is not currently supported by ROCm, fortunately you can trick it into thinking it's Navi 21 and this works just fine, add HSA_OVERRIDE_GFX_VERSION=10.3.0 just before you launch it, this may also apply to Navi 22 cards.
The text was updated successfully, but these errors were encountered: