Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates visualization of annotations on images using Labelme JSON format for AI artists and developers.
The Draw Labelme Json node is designed to facilitate the visualization of annotations on images using the Labelme JSON format. This node is particularly useful for AI artists and developers who work with annotated datasets, as it allows for the easy rendering of labeled regions directly onto images. By leveraging this node, you can visually inspect and verify the accuracy of annotations, ensuring that the labeled data aligns with the intended objects or regions within an image. The node processes JSON data that contains information about shapes, labels, and coordinates, and it draws these annotations onto the image using specified colors and fonts. This functionality is essential for tasks that require precise visual representation of labeled data, such as training machine learning models or creating datasets for computer vision applications.
This parameter represents the input image in the PIL (Python Imaging Library) format. It is the canvas on which the annotations will be drawn. The image should be in RGB format to ensure compatibility with the drawing functions.
This parameter contains the JSON data in the Labelme format, which includes information about the shapes, labels, and coordinates of the annotations. It is crucial for defining what and where to draw on the image.
This parameter determines which labels should be displayed on the image. If set to "all," all labels will be shown. Otherwise, it can be a comma-separated list of specific labels to display.
This parameter specifies which labels should be highlighted as events. Labels matching this prompt will be drawn with a distinct color (red) to differentiate them from non-event labels.
This parameter is used to map existing labels to new labels based on a JSON string. It allows for dynamic renaming of labels before they are drawn on the image.
This parameter indicates whether to display the threshold value associated with each label. If set to "yes," the threshold will be appended to the label text.
This output is the processed image with annotations drawn on it, converted back into a tensor format suitable for further processing or saving.
This output provides the modified JSON data, which includes any changes made to the labels or shapes during the drawing process. It is useful for saving or further analysis.
This output consists of masks corresponding to the annotated regions in the image. Each mask is a binary representation of the area covered by a particular annotation, useful for tasks like segmentation.
show_prompt and event_prompt parameters to control which labels are visible and highlighted, allowing for focused analysis of specific annotations.prompt_name parameter to dynamically rename labels, which can be helpful when working with datasets that require consistent labeling conventions.labelme_json or prompt_name is not properly formatted.PingFangRegular.ttf is located in the correct directory as specified in the code. If necessary, update the path to point to an existing font file.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.