CreatorsOk
NerdyRodent
NerdyRodent

patreon


DeepSeek-R1 Enhanced Flux Prompts

Video - https://youtu.be/T7nufrDmc9A

DeepSeek. It's all the rage at the moment, so I figured I'd give it a spin in ComfyUI to see how good it was at prompt enhancing for image generation!

The following models were used to compare against:

The TL;DR is yes, it's very good. Is it the best? Not fully convinced yet :) I'm liking Olmo at the moment, but time will tell.

I also found the new gradient estimation sampler gave decent results with Flux, so certainly taking a look at if you've not done so as yet. It certainly seems to pair nicely with the kl_optimal scheduler.

Links

https://ollama.com/

https://ollama.com/library/deepseek-r1

Workflow

Just a single workflow this time as it's simply for testing out the prompt capabilities of various large language models.

It includes various extra nodes from previous videos, such as Detail Daemon and WaveSpeed.

If you don't have ollama installed yet, you'll need to do that first, as well as download whatever models you want to test from the ollama library, E.g.

ollama pull deepseek-r1:14b

LLM mode can be turned off too, should you just want the basic prompt.

The regex node used is from comfyui-lf - https://github.com/lucafoscili/comfyui-lf (as apparently manager can't detect this one)

WaveSpeed (covered previously) - https://github.com/chengzeyi/Comfy-WaveSpeed

Derfuu - https://github.com/Derfuu/Derfuu_ComfyUI_ModdedNodes

Example screenshot of a completed workflow run:

Also included is the full-size montage image of the test results.

DeepSeek-R1 Enhanced Flux Prompts

Comments

Thanks. I've added the links to those in the main description as manager isn't detecting them

Nerdy Rodent

I have the following errors while loading a workflow: DF_Get_latent_size ApplyFBCacheOnModel LF_RegexReplace

Ruslan Urmanov

ok got it. It's there in the manager. Not sure why it didnt find the nodes before. Thanks for your help

guni

Looks like it is back in the manager search list now (though it no longer has the little wave icon in the name)

Nerdy Rodent

The regex node is in comfyui-lf - https://github.com/lucafoscili/comfyui-lf

Nerdy Rodent

I'm guessing you downloaded the attached json file in the end? I've not heard of Anything LLM, so my first guess it something to do with that. Typically when an LLM gives rubbish answers, you can tweak the top_p and top_k

Nerdy Rodent

That one is in comfyui-lf - https://github.com/lucafoscili/comfyui-lf

Nerdy Rodent

Where can I get that? When I open the wf it is a missing node. Using manager doesnt list the missing node

guni

when I go to install missing node, couldnt get the regex node... any idea how to install the missing node?

guni

Am i missing something? I can't find the workflow. The image doesn't have the workflow builtin.

Gary

I don't know what's up, but when I use any of the deepseek models i get a bunch of jiberish answers that have nothing to do with the prompt. It goes on like a yapping dog, changing subjects and continuing to spew out answers. I'm using Ollama and AnythingLLM to test it. what's the deal?

Gary

installing this would help https://github.com/chengzeyi/Comfy-WaveSpeed

p tjie

I was able to resolve by manually install wavespeed via git pull, described in the “Speed boost Flux” earlier episode

Sebastian Antony

got this error too...

p tjie

Thank you for creating this. Though I updated ComfyUI via Manager, I'm having an issue loading just one node: ApplyFBCacheOnModel - Is there any guidance you can provide me? Thanks

Sebastian Antony

Awesome for putting this together so quickly! Yeah, Great job!

Lord Banzai

Regex to the rescue!

Nerdy Rodent

Good job. I already added DeepSeek-R1 to my workflows, but I need to parse and remove the "thinking" part of the context... and I'm too lazy for that, so I went back to use LLama3.2 😂

Alexander Garzon


More Models and Creators