This comment is older, I think stable diffusion may have moved to a newer torch version since then. I'm not using an AMD card at the moment so I'm not sure whether there's still a good workaround.
I restarted the display manager which caused the named socket to be created and it appears like everything is working again. I really appreciate you helping me with this it would have taken me forever to figure that out on my own.
# strace -econnect glxinfo >/dev/null
connect(3, {sa_family=AF_UNIX, sun_path=@"/tmp/.X11-unix/X0"}, 20) = -1 ECONNREFUSED (Connection refused)
connect(3, {sa_family=AF_UNIX, sun_path="/tmp/.X11-unix/X0"}, 110) = -1 ENOENT (No such file or directory)
connect(3, {sa_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
connect(3, {sa_family=AF_INET6, sin6_port=htons(6000), sin6_flowinfo=htonl(0), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_scope_id=0}, 28) = -1 ENETUNREACH (Network is unreachable)
connect(3, {sa_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("127.0.0.1")}, 16^C) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
strace: Process 30295 detached
So if I understand correctly, it failed because /tmp/.X11-unix/X0 doesn't exist in the filesystem. Is there a way I can add this named socket back?
Edit: I just noticed that there is a named socket in the filesystem /tmp/.X11-unix/X1. I'm also running a VNC server that is using display :1, could this be causing issues?
ok I'm looking in there and I can't see anything that looks like the wifi driver is loading, what happens if you "modprobe iwlwifi", or "modinfo iwlwifi"
Also, if you configured the driver to be compiled into the kernel rather than as a separate module then you will also need to build in the firmware.
Speaking as someone who prefers to run things on my own hardware.
The pricing seems reasonable, I can see how this would be useful to a less techy type of person.
I didn't see if you already offer this, but I think you should provide users with the option of downloading the ckpt file since for many people the training of dreambooth is the difficult part but they are happy to do the inference on their own hardware.
I went through this process trying to get my rx 580 working with SD on Gentoo.
You're right about AMD drivers being in the kernel, but those are only the graphics drivers, not the compute drivers.
Now, AMD compute drivers are called ROCm and technically are only supported on Ubuntu, you can still install on other distros but it will be harder.
In addition, your gpu is unsupported by ROCm, Rx 570 is in the class of gpu called gfx803, so you'll have to compile ROCm manually for gfx803.
You'll also need to compile pytorch and torchvision for gfx803, although I recommend you install the whl files from here inside your venv because it's a massive pain to compile them on non-Ubuntu (I tried)
I did eventually get it working on Gentoo, so I'm sure it's possible on Fedora but if you are able to run Ubuntu then it will make your life much easier.
By the way, I hope you have the 8gb rx 570 because I wouldn't have much hope that the 4gb version will even work at all.
Yeah, personally I've never been able to use train text encoder with my 2080 ti (11GB VRAM), even if I boot Linux in headless mode and pytorch can use all of the VRAM.
Not sure what trick OP is using or maybe they accidentally left it ticked in the screenshot?
Edit: with recent changes to the dreambooth extension I can now train text encoder with 11gb vram
It should have said "purrsonal trainer"
This comment is older, I think stable diffusion may have moved to a newer torch version since then. I'm not using an AMD card at the moment so I'm not sure whether there's still a good workaround.
Source?
To simulate y keypress with xdotool you do it like this:
xdotool key yIf nothing came up in xbindkeys -k on your joypad that means that it didn't detect the event.
Maybe xbindkeys won't work for this case.
If you use the xbindkeys cli there is an option (-k I think) which waits for you to press a key then tells you what the code for that is.
You can then add it to your config file and bind it to a command which simulates the key press. I've used xdotool before for simulating the key press.
I've never used the GUI before so I can't really help with that.
Not familiar with retroarch but I assume you're using a controller of some sort.
Can you use something like xbindkeys to bind some buttons on the controller to y/n? Could also bind a button combo if you don't have any free buttons.
I restarted the display manager which caused the named socket to be created and it appears like everything is working again. I really appreciate you helping me with this it would have taken me forever to figure that out on my own.
Hey I'm not sure if you caught my edit but it could be due to the VNC server I'm running maybe?
Hmm yeah, that seems to be the case:
So if I understand correctly, it failed because
/tmp/.X11-unix/X0doesn't exist in the filesystem. Is there a way I can add this named socket back?Edit: I just noticed that there is a named socket in the filesystem
/tmp/.X11-unix/X1. I'm also running a VNC server that is using display :1, could this be causing issues?RMS didn't write the original Unix
It's not a program, it's part of bash. There's a section in
man bashcalled "Pipelines"It's probably easier if you enable it as a module rather than built into the kernel
ok I'm looking in there and I can't see anything that looks like the wifi driver is loading, what happens if you "modprobe iwlwifi", or "modinfo iwlwifi"
Also, if you configured the driver to be compiled into the kernel rather than as a separate module then you will also need to build in the firmware.
I suspect that something is wrong with your driver somehow, read through this page carefully https://wiki.gentoo.org/wiki/Iwlwifi
There's not much to go off unless you post the full log somewhere
Ok, well at least we have confirmed that your card is AX200 which means that iwlwifi is the correct driver.
I think at this point I'd be looking for errors in /var/log/messages
Pipe the command into a pager (e.g less) then you can scroll
Have you configured your kernel to use iwlwifi?
Check for errors in dmesg, see if your card shows up in lspci or "iw dev" (net-wireless/iw)
You didn't mention if you are using NetworkManager or netifrc etc...
If you're using netifrc you'll need wpa_supplicant and the driver for your wireless card, probably iwlwifi since you said it's an Intel card
Speaking as someone who prefers to run things on my own hardware.
The pricing seems reasonable, I can see how this would be useful to a less techy type of person.
I didn't see if you already offer this, but I think you should provide users with the option of downloading the ckpt file since for many people the training of dreambooth is the difficult part but they are happy to do the inference on their own hardware.
I went through this process trying to get my rx 580 working with SD on Gentoo.
You're right about AMD drivers being in the kernel, but those are only the graphics drivers, not the compute drivers.
Now, AMD compute drivers are called ROCm and technically are only supported on Ubuntu, you can still install on other distros but it will be harder.
In addition, your gpu is unsupported by ROCm, Rx 570 is in the class of gpu called gfx803, so you'll have to compile ROCm manually for gfx803.
You'll also need to compile pytorch and torchvision for gfx803, although I recommend you install the whl files from here inside your venv because it's a massive pain to compile them on non-Ubuntu (I tried)
I did eventually get it working on Gentoo, so I'm sure it's possible on Fedora but if you are able to run Ubuntu then it will make your life much easier.
By the way, I hope you have the 8gb rx 570 because I wouldn't have much hope that the 4gb version will even work at all.
I found I could get a used 2080 ti for around the same price as a new 3060, with 11GB VRAM but faster, albeit uses more power.
It took me 3.80s to run your example on 2080 ti
If I set batch size to 6 it takes 17.17 seconds which is 2.86 seconds per image
I am able to train dreambooth with it, using the AUTOMATIC1111 dreambooth extension.
It's possible
Source: did hacky ROCm install with rx 580
Yeah, personally I've never been able to use train text encoder with my 2080 ti (11GB VRAM), even if I boot Linux in headless mode and pytorch can use all of the VRAM.
Not sure what trick OP is using or maybe they accidentally left it ticked in the screenshot?
Edit: with recent changes to the dreambooth extension I can now train text encoder with 11gb vram
I also have that hash
What's the model hash of the Vanilla 1.5 model? Just wanna check I have the right one. Also are we allowed to use VAE?