100 lines
3.1 KiB
Markdown
100 lines
3.1 KiB
Markdown
# Custom Workflow - 1 Image in ComfyUI-Roboflow
|
||
|
||
You can create whatever workflow you want. This node takes in one image and will output up to 4 images and 4 strings depending on what you are doing.
|
||
|
||
<img width="1001" alt="Screenshot 2024-09-25 at 10 36 18 AM" src="https://github.com/user-attachments/assets/0feac52b-dcb5-4684-8345-3ac2a2fe4c7f">
|
||
|
||
|
||
|
||
## 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 Custom Workflow - 1 Image Node
|
||
|
||
Right-click
|
||
|
||
Add Node -> Roboflow -> Custom Workflow - 1 Image
|
||
|
||
<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. Press "Create Workflow" and make your custom workflow
|
||
|
||
Add any of the blocks or edit from a template here.
|
||
|
||
<img width="206" alt="Screenshot 2024-09-25 at 10 11 51 AM" src="https://github.com/user-attachments/assets/2b1d2cc7-75eb-4bd1-a3e6-14dc6c6be4e1">
|
||
|
||
## 4. Click the Response node in your workflow
|
||
|
||
<img width="260" alt="4" src="https://github.com/user-attachments/assets/2c314557-f791-475a-ad3c-1b50b48eb0ae">
|
||
|
||
|
||
## 5. Copy the output names you care about
|
||
|
||
<img width="377" alt="5" src="https://github.com/user-attachments/assets/02358e79-bd76-4e7f-ab28-b47d3d6a90d9">
|
||
|
||
|
||
## 6. Paste the output names as keys in your ComfyUI Node
|
||
|
||
Output images are go under output_image1_key, output_image2_key, etc
|
||
|
||
Your input_image1_key is always "image" unless you changed it in Roboflow.
|
||
|
||
<img width="261" alt="6" src="https://github.com/user-attachments/assets/0b17f97f-2f7e-4904-b876-8d0d29b2981f">
|
||
|
||
|
||
|
||
## 7. Go back to Roboflow and 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">
|
||
|
||
|
||
## 8. 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">
|
||
|
||
|
||
## 9. 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">
|
||
|
||
|
||
## 10. 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="1001" alt="Screenshot 2024-09-25 at 10 36 18 AM" src="https://github.com/user-attachments/assets/0feac52b-dcb5-4684-8345-3ac2a2fe4c7f">
|
||
|
||
|
||
# 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)
|