ostris / ai-toolkit

Various AI scripts. Mostly Stable Diffusion stuff.
MIT License
220 stars 25 forks source link

Very high system RAM use in certain scenario #16

Open FiveLayersOfCorrugatedCardboard opened 9 months ago

FiveLayersOfCorrugatedCardboard commented 9 months ago

Relevant error message:

Error running job:

======================================== Result:

It seems that if too many tags are put into "positive" and/or "negative" for your target, the program will eat up a very high amount of system ram.

Running with these prompts in the config led to the script trying to use every single bit of my 48gb of system ram it could possibly get.
Positive: "complex 3d render ultra detailed, 150 mm, beautiful studio soft light, rim light, vibrant details, hyperrealistic" Negative: ""illustration, 3d, sepia, painting, cartoons, sketch, worst quality, low quality, normal quality"

However, ~4-8gb would be in use with a tags few pruned: Positive: "Ultra detailed, 150 mm, beautiful studio soft light, rim light, vibrant details, hyperrealistic" Negative: "illustration, sepia, painting, cartoons, sketch, worst quality, low quality, normal quality"

As an addendum, if "shuffle" is set to false, this does not happen,