ComfyUI > Nodes > ComfyUI_KimNodes > 🍒YOLO_Crop✀YOLO裁切

ComfyUI Node: 🍒YOLO_Crop✀YOLO裁切

Class Name

YOLO_Crop

Category
🍒 Kim-Nodes/✂ Crop | 裁剪工具
Author
Kim (Account age: 2536days)
Extension
ComfyUI_KimNodes
Latest Updated
2025-09-22
Github Stars
0.05K

How to Install ComfyUI_KimNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_KimNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_KimNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🍒YOLO_Crop✀YOLO裁切 Description

YOLO_Crop node automates object detection and cropping in images using the YOLO model.

🍒YOLO_Crop✀YOLO裁切:

The YOLO_Crop node is designed to facilitate object detection and cropping within images using the YOLO (You Only Look Once) model. This node is particularly useful for AI artists who want to focus on specific objects within an image, such as faces or other predefined categories, by automatically detecting and cropping these areas. The node processes input images, ensuring they are in the correct format for the YOLO model, and then uses the model to predict and identify objects based on confidence levels. The primary goal of this node is to streamline the process of isolating and working with specific elements within an image, making it an invaluable tool for tasks that require precision and efficiency in object detection and manipulation.

🍒YOLO_Crop✀YOLO裁切 Input Parameters:

image

The image parameter is the input image that you want to process using the YOLO model. It must be a torch.Tensor type, and the node will handle images with different channel configurations, converting them to RGB format if necessary. This parameter is crucial as it determines the content that the YOLO model will analyze for object detection. The image should be pre-processed to ensure it is in the correct format, with dimensions adjusted to match the model's requirements.

confidence

The confidence parameter sets the threshold for the YOLO model's predictions. It determines the minimum confidence level required for an object detection to be considered valid. This parameter impacts the accuracy and reliability of the detected objects, with higher values leading to fewer false positives but potentially missing some objects. The confidence level should be chosen based on the desired balance between precision and recall in the detection results.

🍒YOLO_Crop✀YOLO裁切 Output Parameters:

bboxes

The bboxes parameter represents the bounding boxes of the detected objects within the input image. These bounding boxes are the coordinates that define the area of each detected object, allowing you to crop or further process these regions. The output is essential for tasks that require precise localization of objects, enabling you to isolate and manipulate specific parts of the image based on the YOLO model's predictions.

🍒YOLO_Crop✀YOLO裁切 Usage Tips:

  • Ensure that your input image is a torch.Tensor and properly formatted to avoid errors during processing.
  • Adjust the confidence parameter based on your specific needs; a higher confidence level reduces false positives but may miss some objects.
  • Use the bounding boxes output to focus on specific areas of interest within your image, enhancing your ability to manipulate or analyze these regions.

🍒YOLO_Crop✀YOLO裁切 Common Errors and Solutions:

"输入的 image 不是 torch.Tensor 类型"

  • Explanation: This error occurs when the input image is not of the expected torch.Tensor type.
  • Solution: Ensure that your input image is converted to a torch.Tensor before passing it to the node.

"Failed to load YOLO model: <error_message>"

  • Explanation: This error indicates that there was an issue loading the YOLO model, possibly due to incorrect model path or corrupted files.
  • Solution: Verify the model path and ensure that the YOLO model files are correctly placed and not corrupted. Re-download the model if necessary.

"加载YOLO模型失败: <error_message>"

  • Explanation: Similar to the previous error, this message indicates a failure in loading the YOLO model, likely due to configuration or file issues.
  • Solution: Check the configuration settings and model files for any discrepancies. Ensure that the model is compatible with your system's architecture and dependencies.

🍒YOLO_Crop✀YOLO裁切 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_KimNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

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.