theUpsider / ComfyUI-Styles_CSV_Loader

This extension allows users to load styles from a CSV file, primarily for migration purposes from the [automatic1111 Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui).
MIT License
34 stars 4 forks source link

Enhancement: CSV File Loader #2

Closed PCMonsterx closed 10 months ago

PCMonsterx commented 10 months ago

Hello I am using the node within ComfyUI and think it is a great idea. The only issue I have, like the Prompt Style Chooser in WAS Suite, I would like to have this same power using other CSV files. The best option for this I think would be to add a section within the node where you are able to input the name of the CSV file you want to reference. For example I have copied the Custom node and replaced all references to "styles" with "settings" and now I have a settings.csv. This is a workable approach but would be much easier if there was only one node where the CSV can be referenced. I'm not sure if there is a limit in the functionality of ComfyUI when it comes to this but would be a much better approach in my opinion.

If there are limitations, maybe extra nodes can be added as seen below for basic things you would include in a prompt.

image image

Thank you for the node regardless, saved me the time of trying to pull the code from the WAS Suite and figuring it out myself.

PCMonsterx commented 10 months ago

So I went ahead with the second suggestion I posted above. Feel free to implement it into the base model if you would like. The only other change I would like is to actually show the positive prompt and negative prompt below the name. I'm not sure how to implement that though.. so if you do I would be great full.

The folder with the CSV files has been moved to the ComfyUI\custom_nodes\ComfyUI-CSV_Loader folder to keep everything contained and updated everything to be CSV Loader instead of Style CSV Loader. The CSV files include artists.csv, artmovements.csv, characters.csv, composition.csv, lighting.csv, negative.csv, positive.csv, settings.csv, and styles.csv. All have some preloaded selections but can always be updated in the CSV files. ComfyUI-CSV_Loader.zip

https://github.com/theUpsider/ComfyUI-Styles_CSV_Loader/assets/58462961/9d6c7fbf-9ae4-4e90-a2cc-cc98aa6cc0f8

PCMonsterx commented 10 months ago

Ended up making a GitHub repository for the changes I made incase users would like to use either or.

https://github.com/PCMonsterx/ComfyUI-CSV-Loader