58 lines
2.5 KiB
Markdown
58 lines
2.5 KiB
Markdown
# 🎨 Object Fusion Pipeline
|
|
|
|
## 🌟 Motivation
|
|
Have you ever wanted different objects from different photos to appear in one scene? Manually prompting for Diffusion can be time-consuming as it requires describing the details (shape, color, textual features) of the objects. Alternatively, using GPT to describe the object for us involves multiple steps.
|
|
|
|
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
|
|
<details>
|
|
<summary>Click to expand/collapse</summary>
|
|
|
|

|
|

|
|

|
|

|
|
|
|
</details>
|
|
|
|
## 🛠️ Installation
|
|
|
|
1. Clone this repo into the `custom_nodes` directory in [ComfyUI](https://github.com/comfyanonymous/ComfyUI):
|
|
```bash
|
|
git clone https://github.com/your-repo/custom_nodes
|
|
```
|
|
|
|
2. Install the required packages:
|
|
```bash
|
|
pip install -r myreqs.txt
|
|
```
|
|
|
|
3. Clone these amazing repositories and follow their instructions:
|
|
- [ComfyUI-SD3-nodes](https://github.com/liusida/ComfyUI-SD3-nodes)
|
|
_Note: Place the 3 clips model into `models/clip`._
|
|
- [img2txt-comfyui-nodes](https://github.com/christian-byrne/img2txt-comfyui-nodes)
|
|
- [ComfyUI-Custom-Scripts](https://github.com/pythongosssss/ComfyUI-Custom-Scripts)
|
|
|
|
## 📌 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](https://github.com/ZHO-ZHO-ZHO/ComfyUI-YoloWorld-EfficientSAM)**
|
|
- Added 2 output fields: `BBOX`, `categories`.
|
|
- Displayed ID also in the IMAGE output (e.g., `{ID} - {class} - {confidence}`).
|
|
|
|
- **[comfyui-llm-assistant](https://github.com/longgui0318/comfyui-llm-assistant)**
|
|
- Removed input field: `prompt`.
|
|
- Added 4 input fields: `object1`, `desc_obj1`, `object2`, `desc_obj2`.
|
|
|
|
## 🤝 Contributing
|
|
Contributions are welcome! Please open an issue or submit a pull request.
|
|
|
|
## 📄 License
|
|
This project is licensed under the MIT License.
|