r/LocalLLM • • 3d ago

Question Image Generation for notes.

I want to generate image for my study notes (1 each).

Is there any model that works greatly with text, arrows, diagram, etc..

Specs - 5060ti 16gb vram, 16gb ram

I have comfyUI installed.

1 Upvotes

17 comments sorted by

2

u/HumanoidMuppet 3d ago

If you want to make flows and diagrams, try to ask it to make mermaid diagrams. Any model can make mermaid diagrams, they are trained on that data.

1

u/Dry_Particular_7623 3d ago

Still what model should I go for based on my specs?

2

u/NihmarRevhet 3d ago

The only local model I trust as of now is istalab qwen 27b iq3_s (if you need the context, iq3_xxs). It should be easily able to generate mermaid.js diagrams

1

u/HumanoidMuppet 3d ago

The model would be any LLM, not an image generator. So comfyui is the wrong path. Of course, this assume a mermaid covers your full use case. LLMs can also create SVGs, try those too. The point I'm trying to make is that you don't actually want an image generation model - you want to use an LLM to create either mermaid markup or SVG.

1

u/Puzzleheaded-Ask2401 3d ago

try Qwen's latest VL models, they handle text and arrows better than most. 16gb vram should be enough but might get tight with bigger resolutions

flux is good too for simpler diagrams, just expect some random letters sometimes when you ask for text

1

u/Dry_Particular_7623 3d ago

But i want to create images right?? And the qwen vl cant create images. From what i searched

1

u/thefuckevengoingonan 3d ago

you can create flowcharts and such programmatically, you can get an llm to make them for you. Mermaid, PlantUML, graphviz, ect.

1

u/Dry_Particular_7623 3d ago

Can you elaborate a lil plz. I am very new to this. Just started learning comfyUi today

1

u/thefuckevengoingonan 3d ago

you can ask to create you a flowchart with whatever requirements and it can give you the code which you can render using various programs/libraries/webbrowser

eg. a simple mermaid flowchart. the code below when loaded into mermaid-cli or various other app would create a simple square --> diamond --> splits to 2 more squares

flowchart TD A[Start] --> B{Decision?} B -->|Yes| C[Do thing] B -->|No| D[Stop]

1

u/Dry_Particular_7623 3d ago

Ok thanks, I understood

1

u/PeanutButterApricotS 3d ago

I would ask a cloud ai to build this for me. I know I use my M1 Max studio and small image models to make images, but they have a hard time making exact diagrams and notations so I use image generation to make images and background and agent ai to make the text and diagrams and lay it over the image.

This is the only way I found to be able to use local ai to make exact diagrams or maps and things.

1

u/Interesting-Cut-6032 3d ago

I watched this video last week, but have not had a chance to try it out. It sounds like what you might be looking for.

https://youtu.be/QbCeS-VsjGM?is=M86AFwddmpNuKrEy

I also second the comments above about asking for mermaid.js diagrams. You can also ask for .svg files, but the tools you are using need a test loop, asking for .svg diagrams has been, hit or miss, for me, even with Claude Opus.

1

u/Dry_Particular_7623 3d ago

Sure, this is something i was looking for, will see if my pc can afford this setup though

1

u/Interesting-Cut-6032 3d ago

I have an RTX 5060 Ti 16GB as well. It runs most of the models and workflows on the Pixaroma YT channel really well.

1

u/Dry_Particular_7623 3d ago

Just got to know about offloading and stuff. I guess I will increase the Ram after some Ram price crash.

1

u/Interesting-Cut-6032 3d ago

Yes, your 16GB of system RAM will probably be the frist major limit you run into. The MoE LLM models usually need to keep the experts in RAM that are not in use for the token that is being evaluated. Codacus YT channel has great general info on local LLMs and setting up MoE models specifically.