qt.qpa.plugin error with sd-scripts/sdxl_gen_img.py
I implemented SDXL LoRa training similar to https://github.com/runpod-workers/worker-lora_trainer using https://github.com/kohya-ss/sd-scripts which seems to work fine now. So I figured it would be very simple to also use the provided https://github.com/kohya-ss/sd-scripts/blob/main/sdxl_gen_img.py script for image generation, but even a very basic call always results in this error and kills my worker:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.8/..." even though it was found.
qt.qpa.xcb: could not connect to display
I'm a total noob regarding these kind of issues, but I think that is related to the runpod environment itself? (because there is of course no display?)
Maybe one of you pros ran into this issue before and there is a obvious mistake I made. Or maybe you can smack the back of my head with an research idea? Many thanks in advance!
GitHub
GitHub - runpod-workers/worker-lora_trainer
Contribute to runpod-workers/worker-lora_trainer development by creating an account on GitHub.
GitHub
GitHub - kohya-ss/sd-scripts
Contribute to kohya-ss/sd-scripts development by creating an account on GitHub.
GitHub
sd-scripts/sdxl_gen_img.py at main · kohya-ss/sd-scripts
Contribute to kohya-ss/sd-scripts development by creating an account on GitHub.
Solution:Jump to solution
RunPod has no physical display, I suggest logging an issue in the kohya scripte Github repo. This is not a RunPod issue, you are asking for help in the wrong place.
2 Replies
Solution
RunPod has no physical display, I suggest logging an issue in the kohya scripte Github repo. This is not a RunPod issue, you are asking for help in the wrong place.
Alright, thanks for clarification! I was hoping this is just some form of Runpod environment setting regarding a simulated display driver or something. 💔