# ComfyUI_Jags_VectorMagic
**Repository Path**: analyzesystem/ComfyUI_Jags_VectorMagic
## Basic Information
- **Project Name**: ComfyUI_Jags_VectorMagic
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: GPL-3.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-03-23
- **Last Updated**: 2024-08-12
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# ComfyUI_Jags_VectorMagic
#a collection of nodes to explore Vector and image manipulation
✨🍬Please note the work in this repo is not completed and still in progress and code will break until all things are sorted. Please wait as will announce same in the update here.
Thanks for your support. Also note for any issues on the nodes, kindly share your workflow and alos always update comfyUI base including all dependencies.✨🍬
### Nodes
# x-y tiling K sampler and circular VAE modes for tileable images
# Segmentation using Ultralytics Yolov8 models and creating masks with same
You can see more examples of the workflow and proper selection of models for each type of segmentation masks in the *VECTOR MAGIC WIKI*
# Jags-Clipseg Nodes
CLIPSeg adds a minimal decoder on top of a frozen CLIP model for zero- and one-shot image segmentation.
The CLIPSeg node generates a binary mask for a given input image and text prompt.
**Inputs:**
- image: A torch.Tensor representing the input image.
- text: A string representing the text prompt.
- blur: A float value to control the amount of Gaussian blur applied to the mask.
- threshold: A float value to control the threshold for creating the binary mask.
- dilation_factor: A float value to control the dilation of the binary mask.
**Outputs:**
- tensor_bw: A torch.Tensor representing the binary mask.
- image_out_hm: A torch.Tensor representing the heatmap overlay on the input image.
- image_out_bw: A torch.Tensor representing the binary mask overlay on the input image.
### JagsCombineSegMasks
The CombineSegMasks node combines two or optionally three masks into a single mask to improve masking of different areas.
**Inputs:**
- image: A torch.Tensor representing the input image.
- mask1: A torch.Tensor representing the first mask.
- mask2: A torch.Tensor representing the second mask.
- mask3 (optional): A torch.Tensor representing the third mask. Defaults to None.
**Outputs:**
- combined_mask: A torch.Tensor representing the combined mask.
- image_out_hm: A torch.Tensor representing the heatmap overlay of the combined mask on the input image.
- image_out_bw: A torch.Tensor representing the binary mask overlay of the combined mask on the input image.
### Example Work flow
# x-y tiling K sampler and circular VAE modes for tileable images- workflow using SDXL

### ComfyUI_Jags_VectorMagic- WIKI
Link to the workflow and explanations : **WIKI**
Many thanks for a wonderful flower segmentation pipeline from Flower-Instance-Segmentation which is now added to the Yolov8 models repo for exploration.
### Dependencies
The python library simpleeval is required to be installed if you wish to use the **expression Nodes**.
pip install simpleevalAlso can be installed with a simple pip command