I've seen exactly what you describe in a gaming community I've been in for over 20 years now. It's pretty big but small enough I could nose around each of the most vocal antagonists (most of which I already know and like) and find out what's really driving the antagonism. It's a strange mix of 'low information participant' and self-described 'fearful developer/artist' types. But it's come out several times that even the portion of self-described 'developer/artists' who were vehemently against AI ironically all used AI at some point in their pipeline and that translated to each one basically having their own, customized definition of 'AI' which carved out the AI-assisted tools they used to be 'okay' but anyone using more or different tools was a 'thief' and 'stealing', their words.
Yeah, threads like these are crack. I made a small tutorial, myself, for this model, which I believe is the model the OP's is derived from- it's from- by the Tongyi Lab team at Alibaba Group. Last year or maybe the year before, the meager 4GB VRAM GTX 1650 (which is in a ton of laptops) was THE most common video card according to the yearly Steam Hardware Survey. Posts like OP's are literally opening doors people who have allegedly 'low-end' cards to make AI.
Very cool! I'll try this out this weekend- thanks for sharing!
FWIW, for those who have older 4GB VRAM cards (and who also have 32GB or more of RAM) and don't need anything more than a simple workflow, might want to check out this brief tutorial for this quantized model developed by the Tongyi Lab team at Alibaba Group. It runs perfectly on a laptop's GTX 1650! (this is with the NVidia's 'fallback to RAM if you run out of VRAM turned OFF, too!)
Okay I think I can maybe get that one to work like I'm thinking.
It's unfortunate that the node is set up so each input image still requires a separate mask. I assume the way I fix this later (heading to work soon) is I abstract the alpha from the "foreground" image I was going to use to use as a mask and create a non-mask mask for the background image, if that makes any sense.
There isn't a node with two image inputs? I just want to have a top image with alpha holes and a bottom (background) image with an output which is those combined. The Save Image with Alpha node just has an Image input and a Mask input. Using the background I want to show through as a "mask" in that node produces an effect I don't want.
Hey just my 2 cents (I was looking for a CLIP interrogator for ComfyUI is how I found this thread) is I have a GTX 1650 as well and ComfyUI has been a godsend of performance and efficiency as compared to Automatic1111. No it's not a perfect 1 to 1 and Comfy IS short some cool features that Automatic has plugins for...but it's damn good and QUICK. I can also do MUCH larger images (something around 1000 x 1,000 or a little more) on my GTX 1650 which is way more than I could squeeze out on Automatic1111.
Well, since you have so much VRAM I'll assume the slowdown isn't related to the newer NVidia drivers (later than 531, IIRC) automatically sharing GPU VRAM and CPU RAM. That's the only thing I could think of that would cause a slowdown. If you look very carefully at the first short video you should be able to pick up exactly what you need to do. Check out the second, longer one, if you still don't feel you're getting what's going on. IDK why there would be any problem, TBH. I have a 4GB GTX 1650 laptop NVidia card and I was able to utilize the heck out of this the last time I tried. If you're still having problems, consider reverting back to an earlier version of Automatic1111. For instance, version 1.2 works pretty well with my card while newer version of Automatic1111 are WAY too hoggy with ram. That sort of thing. Good luck!
After 1.2 things started to fall apart memory-wise. They had done such a good job up to the point but then it just went to shit. Even people with 4GB cards like the GTX 1650 could run it fine before the changes.
If you go back to version 1.2 of SD in github, it works just fine. Hash: 72cd27a1. It worked pretty decently on a 1650 this whole time until about May when they fucked things up amazingly. See here for some tips about command line options and look through my post history for more.
Thanks, I might try that at some point in the future. Interestingly, it's already been brought up there though I don't have a link at the moment. It appears that instead of pursuing the fix I mention in my OP, impetus has (somewhat nonsensically, and possibly out of innocent ignorance) pushed forcing --precision full style solutions to the front. Before trying to overturn that house of cards I wanted to have a better understanding of how it came to be there and that requires a lot more reading of all the discussion threads/bug requests, which I don't always have time for.
It's uncontroversial to state that AUTOMATIC1111 has been enforcing personal code reviews to stop people driving the project in even weirder, unhelpful directions. So far, everything I've seen is that their choice to focus on --precision full instead of the underlying nature of the issue itself is probably one of those missteps.
Cool, well if it helped please do you what you can to get the word out. There are way more people who have 1660's and 1650's, etc., and I'd love to see as many of us as possible enjoying SD to its fullest!
Cool! Just to be clear, are you seeing this performance increase from the edited txt2img.py or just from the --xformers command line switch without the edited txt2img.py?
I didn't care about the numeric tokens at all, they just gave me a way to reverse engineer a list of what I call unitoken words: Individual words which are not represented by tokens on a per-syllable (or whatever) level, but words important enough to have their own unique token. If I have a list of somewhat synonymous words to choose from, I would likely prefer to use a word determined (by some unknown arithmetic) to be worthy of a unitoken. Even though I don't know the exact logic used to determine why a word was given a unitoken, I only know that there was some (intuitive) logic used to single those words out for the treatment.
Some of this came about in trying to render animals like a pelican eel which breaks down to pelican and eel token-vectors, and having SD spit out a cross between a pelican and an eel instead of a pelican eel. It started me to wondering how I could find out which compound words break down to only one token, where that misunderstanding is basically not going to happen. Catfish and kingfisher (a type of bird), for instance, have been granted unitoken status likely to prevent this sort of mixup. I can't say that for sure, though. I could be based on popularity in common speech or some other reason. But there's some reason, not no reason.
There's at least one more reason: There appear to be some 'hidden' (non-intuitive) unitoken words like "thephotohour" which appear to point to specific areas that presumably have been used to train the database. Who would have ever stumbled on that on their own or even guessed it was there? If I look around that twitter account I see tags like #birding. Interestingly, birding is also a unitoken word. So if I'm wanting to render birds, could adding thephotohour and birding help produce a better result with fewer tokens? That sort of thing.
I use automatic1111, have used the --xformers switch in the past and recently used --reinstall-xformers with it in order to make sure everything was set up as well as possible. As I have a Turing card (notebook 4GB GTX 1650), everything appears to 'just work' without me doing anything further and I've read that's also the case.
So I assume....yes? Or is this a separate build of some sort, or something else?
Great stuff and thanks! I'll dig into that one a little bit later. I assume that first list was consolidated computationally and not as the result of some huge team of people manicuring it and so I'm hoping the single-token words might indicate a higher number of samples in the db.
Batch size does have an effect in every test I've carried out. It's never quicker, always slower than if I'd just had a batch count of the same number. I provided the 512x512 at 20 steps and such and such sampler because different resolutions (and the method to presumably 'hires. fix' them) and batches are all going to change the resulting seconds per iteration. Right now I'm feelin' like I've got the best setup of anyone with my video card using --medvram --xformers and whichever of the two DPM++ samplers is best for my guidance setting at like 12-15 steps. If there's better, I'd love to know it. If people aren't getting numbers as good, I'd like to help them do so.
While I don't make the comment to necessarily contradict your point, that's not accurate for those using xformers. Also, there's some evidence that indicates that while specific video card make/models may be reproducible to themselves, other make/models might not be. Again, not meant to contradict the point you were trying to make but subtle non-determinism is creeping around quite a bit in SD. FWIW.
Thanks and thanks for including the 'care and feeding' notes!
I've seen exactly what you describe in a gaming community I've been in for over 20 years now. It's pretty big but small enough I could nose around each of the most vocal antagonists (most of which I already know and like) and find out what's really driving the antagonism. It's a strange mix of 'low information participant' and self-described 'fearful developer/artist' types. But it's come out several times that even the portion of self-described 'developer/artists' who were vehemently against AI ironically all used AI at some point in their pipeline and that translated to each one basically having their own, customized definition of 'AI' which carved out the AI-assisted tools they used to be 'okay' but anyone using more or different tools was a 'thief' and 'stealing', their words.
Yeah, threads like these are crack. I made a small tutorial, myself, for this model, which I believe is the model the OP's is derived from- it's from- by the Tongyi Lab team at Alibaba Group. Last year or maybe the year before, the meager 4GB VRAM GTX 1650 (which is in a ton of laptops) was THE most common video card according to the yearly Steam Hardware Survey. Posts like OP's are literally opening doors people who have allegedly 'low-end' cards to make AI.
Very cool! I'll try this out this weekend- thanks for sharing!
FWIW, for those who have older 4GB VRAM cards (and who also have 32GB or more of RAM) and don't need anything more than a simple workflow, might want to check out this brief tutorial for this quantized model developed by the Tongyi Lab team at Alibaba Group. It runs perfectly on a laptop's GTX 1650! (this is with the NVidia's 'fallback to RAM if you run out of VRAM turned OFF, too!)
What I link to is a 6 GB .safetensors model.
Very nice, thank you!
Okay I think I can maybe get that one to work like I'm thinking. It's unfortunate that the node is set up so each input image still requires a separate mask. I assume the way I fix this later (heading to work soon) is I abstract the alpha from the "foreground" image I was going to use to use as a mask and create a non-mask mask for the background image, if that makes any sense.
There isn't a node with two image inputs? I just want to have a top image with alpha holes and a bottom (background) image with an output which is those combined. The Save Image with Alpha node just has an Image input and a Mask input. Using the background I want to show through as a "mask" in that node produces an effect I don't want.
I swear to god, Wizard-Vicuna-Uncensored is still my go-to in most cases.
Simply following the directions it completely effed my ComfyUI install.
Hey just my 2 cents (I was looking for a CLIP interrogator for ComfyUI is how I found this thread) is I have a GTX 1650 as well and ComfyUI has been a godsend of performance and efficiency as compared to Automatic1111. No it's not a perfect 1 to 1 and Comfy IS short some cool features that Automatic has plugins for...but it's damn good and QUICK. I can also do MUCH larger images (something around 1000 x 1,000 or a little more) on my GTX 1650 which is way more than I could squeeze out on Automatic1111.
FWIW. Best of luck in your adventures!
Did you ever find a way? I don't think it's possible.
Well, since you have so much VRAM I'll assume the slowdown isn't related to the newer NVidia drivers (later than 531, IIRC) automatically sharing GPU VRAM and CPU RAM. That's the only thing I could think of that would cause a slowdown. If you look very carefully at the first short video you should be able to pick up exactly what you need to do. Check out the second, longer one, if you still don't feel you're getting what's going on. IDK why there would be any problem, TBH. I have a 4GB GTX 1650 laptop NVidia card and I was able to utilize the heck out of this the last time I tried. If you're still having problems, consider reverting back to an earlier version of Automatic1111. For instance, version 1.2 works pretty well with my card while newer version of Automatic1111 are WAY too hoggy with ram. That sort of thing. Good luck!
After 1.2 things started to fall apart memory-wise. They had done such a good job up to the point but then it just went to shit. Even people with 4GB cards like the GTX 1650 could run it fine before the changes.
If you go back to version 1.2 of SD in github, it works just fine. Hash: 72cd27a1. It worked pretty decently on a 1650 this whole time until about May when they fucked things up amazingly. See here for some tips about command line options and look through my post history for more.
Thanks, I might try that at some point in the future. Interestingly, it's already been brought up there though I don't have a link at the moment. It appears that instead of pursuing the fix I mention in my OP, impetus has (somewhat nonsensically, and possibly out of innocent ignorance) pushed forcing --precision full style solutions to the front. Before trying to overturn that house of cards I wanted to have a better understanding of how it came to be there and that requires a lot more reading of all the discussion threads/bug requests, which I don't always have time for.
It's uncontroversial to state that AUTOMATIC1111 has been enforcing personal code reviews to stop people driving the project in even weirder, unhelpful directions. So far, everything I've seen is that their choice to focus on --precision full instead of the underlying nature of the issue itself is probably one of those missteps.
Oh, you're welcome- I'm excited to see what other people find. None of this is necessarily secret magic sauce, but I'll take any edge I can get!
Cool, well if it helped please do you what you can to get the word out. There are way more people who have 1660's and 1650's, etc., and I'd love to see as many of us as possible enjoying SD to its fullest!
Cool! Just to be clear, are you seeing this performance increase from the edited txt2img.py or just from the --xformers command line switch without the edited txt2img.py?
I didn't care about the numeric tokens at all, they just gave me a way to reverse engineer a list of what I call unitoken words: Individual words which are not represented by tokens on a per-syllable (or whatever) level, but words important enough to have their own unique token. If I have a list of somewhat synonymous words to choose from, I would likely prefer to use a word determined (by some unknown arithmetic) to be worthy of a unitoken. Even though I don't know the exact logic used to determine why a word was given a unitoken, I only know that there was some (intuitive) logic used to single those words out for the treatment.
Some of this came about in trying to render animals like a pelican eel which breaks down to pelican and eel token-vectors, and having SD spit out a cross between a pelican and an eel instead of a pelican eel. It started me to wondering how I could find out which compound words break down to only one token, where that misunderstanding is basically not going to happen. Catfish and kingfisher (a type of bird), for instance, have been granted unitoken status likely to prevent this sort of mixup. I can't say that for sure, though. I could be based on popularity in common speech or some other reason. But there's some reason, not no reason.
There's at least one more reason: There appear to be some 'hidden' (non-intuitive) unitoken words like "thephotohour" which appear to point to specific areas that presumably have been used to train the database. Who would have ever stumbled on that on their own or even guessed it was there? If I look around that twitter account I see tags like #birding. Interestingly, birding is also a unitoken word. So if I'm wanting to render birds, could adding thephotohour and birding help produce a better result with fewer tokens? That sort of thing.
Tagging /u/diffusion_throwaway /u/yrikko /u/Light_Diffuse /u/vfx_ninjitsu /u/CeraRalaz
I use automatic1111, have used the --xformers switch in the past and recently used --reinstall-xformers with it in order to make sure everything was set up as well as possible. As I have a Turing card (notebook 4GB GTX 1650), everything appears to 'just work' without me doing anything further and I've read that's also the case.
So I assume....yes? Or is this a separate build of some sort, or something else?
Great stuff and thanks! I'll dig into that one a little bit later. I assume that first list was consolidated computationally and not as the result of some huge team of people manicuring it and so I'm hoping the single-token words might indicate a higher number of samples in the db.
Batch size does have an effect in every test I've carried out. It's never quicker, always slower than if I'd just had a batch count of the same number. I provided the 512x512 at 20 steps and such and such sampler because different resolutions (and the method to presumably 'hires. fix' them) and batches are all going to change the resulting seconds per iteration. Right now I'm feelin' like I've got the best setup of anyone with my video card using --medvram --xformers and whichever of the two DPM++ samplers is best for my guidance setting at like 12-15 steps. If there's better, I'd love to know it. If people aren't getting numbers as good, I'd like to help them do so.
You are so awesome, thank you so much!!!!!
While I don't make the comment to necessarily contradict your point, that's not accurate for those using xformers. Also, there's some evidence that indicates that while specific video card make/models may be reproducible to themselves, other make/models might not be. Again, not meant to contradict the point you were trying to make but subtle non-determinism is creeping around quite a bit in SD. FWIW.
Tagging /u/letsburn00