dusty-nv / jetson-containers

Machine Learning Containers for NVIDIA Jetson and JetPack-L4T
MIT License
1.88k stars 416 forks source link

Stable diffusion - image preview #546

Open mallikanik opened 1 month ago

mallikanik commented 1 month ago

Hi! Love the container. I am running the docker on a Jetson AGX Xavier. I am getting the txt2img images in the directory - which is supposed to work like this. I was wondering whether the generated image can be previewed using cv2.imshow or something like that which will open a new window from the terminal and show the image. Is it possible with this docker? Attn: @dusty-nv

I tried with cv2.imshow. The output is something like this:

qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.8/dist-packages/cv2/qt/plugins" even though it was found.:00, 3.11s/it] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Aborted (core dumped)