🎨 Object Fusion Pipeline
🌟 Motivation
Have you ever fantasized about crafting a single masterpiece from elements of different photos? 😲 What if I told you that manually prompting each object's shape, color, and features for diffusion could be a thing of the past? And let’s be real, using GPT to describe each object step by step can feel like chasing an AI in slow motion. 🐢💤
Here, I introduce a complete pipeline that takes two images as input, allowing you to choose which objects from the images you want to fuse seamlessly.
🚀 Features
- Combine objects from two different images into a single scene.
- Easy selection and customization of objects to be fused.
- Optimized integration with ComfyUI.
🖼️ Some Examples
🛠️ Installation
-
Clone this repo into the
custom_nodesdirectory in ComfyUI:git clone https://github.com/ducido/ObjectFusion_ComfyUI_nodes -
Install the required packages:
pip install -r myreqs.txt -
Clone these amazing repositories and follow their instructions:
- ComfyUI-SD3-nodes
Note: Place the 3 clips model intomodels/clip. - img2txt-comfyui-nodes
- ComfyUI-Custom-Scripts
- ComfyUI-SD3-nodes
📌 Note
All the folders, except CROP_OBJECT, are from other repositories. However, I have made some minor modifications to fit this project. Here are the details:
-
Custom_ComfyUI-YoloWorld-EfficientSAM
- Added 2 output fields:
BBOX,categories. - Displayed ID also in the IMAGE output (e.g.,
{ID} - {class} - {confidence}).
- Added 2 output fields:
-
- Removed input field:
prompt. - Added 4 input fields:
object1,desc_obj1,object2,desc_obj2.
- Removed input field:
🤝 Contributing
Contributions are welcome! Please open an issue or submit a pull request.
📄 License
This project is licensed under the MIT License.