Tried a bunch, feels like they were all broken. But yours worked great; actual magic. Really appreciate you sharing this. Do you have any recommendations for actual Lora trainers in comfy? Seems like most are bork'd. Now worries if you don't. Thanks a ton all the same.
Working great and thanks for the vid! Edit: Was able to get it to work on one test image and then a 'list index out of range' error or 'cannot access local variable 'image1' where it is not associated with a value' on Runpod. Tried several pods/installs, all same result
I'm running locally and all of the SimpleMath+ and Adjust Counter for B nodes are throwing up error (I have all the models, everything is updated) EDIT: IMPORTANT! - IF YOU HAVE THE SAME ERROR, MAKE SURE YOU CONVERT YOUR IMAGES TO PNG! EDIT 2 - Nope, the SimpleMath+ node simply doesn't work and throw off errors, no matter what I do.
Yes images need to be PNG. I will update the blog and description. Could be a conflict with another node! Try to setup a clean ComfyUI install and test again.
@@weirdwonderfulaiart thanks for your prompt response. I train some character loras for flux and it seems as wd14 tagging is not really good, so it would be nice to have the option to dis/enable it as you did with Florence 2 vs. Clip Interrogator (which is btw an awesome option to choose between!)
Purpose is to caption your images automatically in ComfyUI which is not easy to do and then use them for LORA training. As shown in this video how to Train Flux LoRA ruclips.net/video/XEIINMF_xt4/видео.htmlsi=WYoJd5HZ19uSBkf3
@@weirdwonderfulaiart I think it's the same one I'm getting: Error occurred when executing LoRA Caption Load: local variable 'image1' referenced before assignment File "G:\ComfyUI\ComfyUI\execution.py", line 317, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "G:\ComfyUI\ComfyUI\execution.py", line 192, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "G:\ComfyUI\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "G:\ComfyUI\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "G:\ComfyUI\ComfyUI\custom_nodes\Image-Captioning-in-ComfyUI\LoRAcaption.py", line 148, in captionload return text, path, image1, len(images)
@@weirdwonderfulaiart Yes i did updated all things, there was a long error in the console. but when i removed the CLIP Interrogator everything is working fine
u have to post even more AI / Runpod / Lora / Flux etc. because your tutorials are soooo well explainedddd. THANK YOUUUUU
Thanks for the kind words. Appreciate the feedback
Good job, dude. That is exactly what I was looking for! Thanks!
Glad you found it useful. It was based on a request in the comments of another video.
@@weirdwonderfulaiart I just tested it with 70 images in 8K Res, took a while, but worked perfectly.
Great workflow. Thank you!!!!
Cheers Goyal
Thanks it worked , also is very fast.
You're welcome!
Tried a bunch, feels like they were all broken. But yours worked great; actual magic. Really appreciate you sharing this. Do you have any recommendations for actual Lora trainers in comfy? Seems like most are bork'd. Now worries if you don't. Thanks a ton all the same.
It works for most people but it could be something to do with your current install of ComfyUI. For LoRA training should look at Fluxgym
Working great and thanks for the vid!
Edit: Was able to get it to work on one test image and then a 'list index out of range' error or 'cannot access local variable 'image1' where it is not associated with a value' on Runpod. Tried several pods/installs, all same result
On runpod can you make sure the directory path is correctly defined - Linux format.
I'm running locally and all of the SimpleMath+ and Adjust Counter for B nodes are throwing up error (I have all the models, everything is updated)
EDIT: IMPORTANT! - IF YOU HAVE THE SAME ERROR, MAKE SURE YOU CONVERT YOUR IMAGES TO PNG!
EDIT 2 - Nope, the SimpleMath+ node simply doesn't work and throw off errors, no matter what I do.
Yes images need to be PNG. I will update the blog and description.
Could be a conflict with another node! Try to setup a clean ComfyUI install and test again.
Amazing workflow, thanks a lot! Is it also possible to deactivate the wd14 tagger?
certainly but you need to re-route some connections to make it work. Question is why would you want to?
@@weirdwonderfulaiart thanks for your prompt response. I train some character loras for flux and it seems as wd14 tagging is not really good, so it would be nice to have the option to dis/enable it as you did with Florence 2 vs. Clip Interrogator (which is btw an awesome option to choose between!)
Thanks for this! I don't get to understand what's the purpose of this. Do you have any follow up videos?
Purpose is to caption your images automatically in ComfyUI which is not easy to do and then use them for LORA training. As shown in this video how to Train Flux LoRA ruclips.net/video/XEIINMF_xt4/видео.htmlsi=WYoJd5HZ19uSBkf3
@@weirdwonderfulaiart I see. Thanks for your response. Why I don't get to see the top bar menu with the queue batch option?
Nice work, Can i use this to caption my dataset for FLUX lora training as well? or it for stable diffusion
🙏 Thanks. Yes you can do that for any Lora training including Flux
@@weirdwonderfulaiart Great. Thanks
can we make our face lora with this workflow?
You can certainly create the captions but not train a lora with this. Checkout fluxgym for Lora training
What's the fix for this?
PreviewImage
'NoneType' object is not subscriptable
Found out. It only works with png files
Only PNG files are supported
May I know the reason of combining Florence and WD14? thanks
More tokens for improved caption.
LoRA Caption Load
local variable 'image1' referenced before assignment
Are all the images PNG files? I didn't see this error before in my testing
@@weirdwonderfulaiart I have the same error. The images are jpegs.
@@reijo121 convert them PNG. The node only works with PNG images
It works but my .png in the ui change the color like... some kind of vaporwave colorful negative, and it reads the colors that way.
Should not affect the prompt though. I didn't notice any difference in my usage which is strange.
when i do this on runpods it doesnt work ,like im running into an error when i queue it , the error comes at lora caption loader
Did the images load? Or it's the error showing before.
@@weirdwonderfulaiart
I think it's the same one I'm getting:
Error occurred when executing LoRA Caption Load:
local variable 'image1' referenced before assignment
File "G:\ComfyUI\ComfyUI\execution.py", line 317, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "G:\ComfyUI\ComfyUI\execution.py", line 192, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "G:\ComfyUI\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "G:\ComfyUI\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "G:\ComfyUI\ComfyUI\custom_nodes\Image-Captioning-in-ComfyUI\LoRAcaption.py", line 148, in captionload
return text, path, image1, len(images)
@@weirdwonderfulaiart no everything was ready, then when i pressed on queue
But dont we need the descriptions on the actual image itself and not a separate text file?
This is what you get when you use this workflow.
I am having a issue, CLIP Interrogator is throwing error, Anyone is getting the same?
What's the error? Did you update all components in ComfyUI, if not then try that?
@@weirdwonderfulaiart Yes i did updated all things, there was a long error in the console. but when i removed the CLIP Interrogator everything is working fine
Does not work it loads all the files and then shows error on maths node
make sure everything is up to date in your ComfyUI. this kind of thing can happen if things are outdated.
Nothing but errors unfortunately, nice explanation but moving onto another solution.
Probably ComfyUI is out of date if you update it would help.
i don't think the wd14 tagger is working
Pls Update your ComfyUI and all custom nodes
@@weirdwonderfulaiart I did this several times
error cannot access local variable 'image1' where it is not associated with a value