Files
2024-09-25 10:41:55 -04:00

79 lines
2.9 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Background Removal Node in ComfyUI-Roboflow
<img width="1091" alt="Screenshot 2024-09-25 at 10 04 25 AM" src="https://github.com/user-attachments/assets/c507a617-5c75-475f-9618-0d1ec32212a7">
## 1. Install ComfyUI-Roboflow
Follow the instructions in [README.md](https://github.com/DareFail/ComfyUI-Roboflow?tab=readme-ov-file#installation)
## 2. Add the Roboflow Remove Background Node
Right-click
Add Node -> Roboflow -> Remove Background
<img width="513" alt="Screenshot 2024-09-25 at 9 38 30 AM" src="https://github.com/user-attachments/assets/c116b47b-fac5-48d1-91ce-45524d7a9d75">
## 3. Add the Roboflow Remove Background Template
In your Roboflow account, go to the [workflow templates page](https://roboflow.com/workflows/templates) and click "Remove the background from an image"
You can go directly to that template at this link:
[https://app.roboflow.com/workflows/embed/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3b3JrZmxvd0lkIjoicm1hMklYUk5ycEhCMlhiM012MzkiLCJ3b3Jrc3BhY2VJZCI6ImtyT1RBYm5jRmhvUU1DZExPbGU0IiwidXNlcklkIjoiSW1GTElaU2tHYk55OXpiNFV1cWxNelBScHBRMiIsImlhdCI6MTcyNDgwNzExMH0.OampfxwhLEwetcgxV0W-XhC7nWQJq5WxQ9IYbVjyCMA](https://app.roboflow.com/workflows/embed/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3b3JrZmxvd0lkIjoicm1hMklYUk5ycEhCMlhiM012MzkiLCJ3b3Jrc3BhY2VJZCI6ImtyT1RBYm5jRmhvUU1DZExPbGU0IiwidXNlcklkIjoiSW1GTElaU2tHYk55OXpiNFV1cWxNelBScHBRMiIsImlhdCI6MTcyNDgwNzExMH0.OampfxwhLEwetcgxV0W-XhC7nWQJq5WxQ9IYbVjyCMA)
## 4. Click "Deploy Workflow" in the top right
<img width="459" alt="Screenshot 2024-09-25 at 9 54 13 AM" src="https://github.com/user-attachments/assets/6c8998a9-574e-411b-a157-98281fb84b51">
## 5. Copy your API Key, workspace name, and workflow id
You can copy each part under the python section
Your API Key will look like this ***** but if you copy and paste it will be the actual API Key.
<img width="743" alt="Screenshot 2024-09-25 at 9 54 04 AM" src="https://github.com/user-attachments/assets/7e917c40-4fae-4cde-b94d-47b61474acd6">
## 6. Paste the information above into your node
<img width="425" alt="Screenshot 2024-09-25 at 10 04 13 AM" src="https://github.com/user-attachments/assets/79518535-2739-47f8-b6a6-c7c44fa20f28">
## 7. Use your node
I linked up a Load Image Node and sent the image out to a Preview Image Node.
You can find both under Right Click
Add Node -> image -> Load Image
Add Node -> image -> Preview Image
<img width="1091" alt="Screenshot 2024-09-25 at 10 04 25 AM" src="https://github.com/user-attachments/assets/c507a617-5c75-475f-9618-0d1ec32212a7">
# Repo Info
## License
Distributed under the APACHE 2.0 License. See `LICENSE` for more information.
## Contact (feel free to ask questions!)
Twitter: [@darefailed](https://twitter.com/darefailed)
Youtube: [How to Video coming soon](https://www.youtube.com/@darefail)
Project Link: [https://github.com/DareFail/ComfyUI-Roboflow](https://github.com/DareFail/ComfyUI-Roboflow)