Extensions/ComfyUI-GPT4V-Image-Captioner
ComfyUI Extension

ComfyUI-GPT4V-Image-Captioner

Nodes:GPT4V-Image-Captioner

By 438443467·Created 3 years ago·Updated about a year ago· 27
438443467/ComfyUI-GPT4V-Image-Captioner
Nodes18
On cloudLocal install
CategorySanmi Nodes/GPT, Sanmi Simple Nodes/Simple NODE
Stars27
Updatedabout a year ago

Nodes (18)

GPT4V-Image-Captioner

Turn any image into a tag list with one API call

Sanmi Nodes/GPT
Read_Prompt

Load an image and its old A1111 settings in one go

Sanmi Simple Nodes/Simple NODE
Counter

A number that steps forward every time the graph runs

Sanmi Simple Nodes/Simple NODE
Samin Load Image Batch

Stop hand-wiring one image at a time

Sanmi Simple Nodes/Simple NODE
String_Attribute_Selector

Merge two LoRA prompts and pick who wins per attribute

Sanmi Simple Nodes/Simple NODE
Adapt_Coordinates

Rescale bounding-box coordinates from a 512 base

Sanmi Simple Nodes/Simple NODE
AdjustTransparency

Turn a mask into a real alpha channel

Sanmi Simple Nodes/Simple NODE
sanmi_BlurMaskArea

Blur only the part the mask covers

Sanmi Simple Nodes/Simple NODE
ChineseToCharacter

Type a character's Chinese name, get ready-to-use anime tags

Sanmi Simple Nodes/Simple NODE
ClothingWildcards

Wildcards that also tune CFG, exposure, and skin tone

Sanmi Simple Nodes/Simple NODE
ConvertToEnglish

Turn 01 into AB, the laziest string transformer

Sanmi Simple Nodes/Simple NODE
sanmi_EditWildcards

Create and rewrite wildcard files from inside the graph

Sanmi Simple Nodes/Simple NODE
sanmi_Float

A float in, the same float out

Sanmi Simple Nodes/Simple NODE
LoadPathImagesPreview

Preview an entire folder in one run

Sanmi Simple Nodes/Simple NODE
SanmiSaveImageToLocal

Save anywhere, and save the caption next to it

Sanmi Simple Nodes/Simple NODE
scale_and_fill_black

Shrink an image and letterbox it in black

Sanmi Simple Nodes/Simple NODE
SimpleWildcards

__pick__ a random line from a text file, that's it

Sanmi Simple Nodes/Simple NODE
Upscale_And_Original_Size

A digital zoom that keeps the canvas size

Sanmi Simple Nodes/Simple NODE
Readme

ComfyUI-GPT4V-Image-Captioner

你可以通过填写KEY和URL快捷地调用GPT视觉模型进行识别和打标。

该项目是我个人对 GPT4V-Image-Captioner repository(https://github.com/jiayev/GPT4V-Image-Captioner) 项目的移植。

感谢GPT4V-Image-Captioner的原作者们。

Input Image Processing:

The project automatically handles image processing, eliminating the need for manual scaling.

GPT4V Integration:

To utilize GPT4V for image annotation, you need to provide the API key and API URL.

Seed and OpenAI Labeling:

The seed value determines the consistency of the labeling process. If the seed and image remain unchanged, there will be no additional calls to OpenAI for labeling. If you are not satisfied with the labeling results, you can modify the seed value to get different outputs.

Prompt Types:

There are two prompt types available: "generic" and "figure". Under the "figure" type, labels will exclude color terms, backgrounds, watermarks, signatures, etc., focusing only on the overall characteristics of the characters.

Weighted Labels:

The option to enable weights for labels is available. When weights are enabled, corresponding weight values will be assigned to the labels.

Excluding Unwanted Words:

If there are specific words in the labels that you want to exclude, you can enter them in the "exclude_words" field. The system will automatically exclude the specified words from the generated labels.