d8ahazard / sd_smartprocess

Smart Pre-processing extension for Stable Diffusion
196 stars 19 forks source link

Question vRAM usage / No Discussion page for this #23

Closed mediocreatmybest closed 1 year ago

mediocreatmybest commented 1 year ago

Hi,

I'm pretty new to Python (Sorry!) I'm more curious how you managed to get the vRAM usage lower than the base repository?

Honestly trying to follow the logic in the way clip-interrogator works with flavors / blip / loops around hurts my brain. I was mainly working on attempting to get it working on the command line in a fairly streamlined way by adding in caption features (the base repository only does CSV)

I did try follow the flavor and artists etc. to create removable options, but it is fairly hacky. if I created it as a bool option to disable the main section obviously some other section was using that variable and would crash out etc.

my modified version is here:

https://github.com/mediocreatmybest/clip-interrogator/blob/modified_dev/run_cli.py (I added a bunch of options I think were missing from the original, including BLIP offloading etc. as the config options existed but weren't created in the run_cli).

and

https://github.com/mediocreatmybest/clip-interrogator/blob/modified_dev/clip_interrogator/clip_interrogator.py (more hacky changes on this one)

More just wondering how you managed to get it to run fairly well in comparison to the default run_cli version from the original repo.

Feel free to close if needed, was more curious and wasn't sure where/how to reach out on this repo.

Thanks!

mediocreatmybest commented 1 year ago

Closing. Stale issue.