AbdullahAlfaraj / AbdullahAlfaraj/Comfy-Photoshop-SD

Layer Sync in Custom Workflow not working

Đang mở
#11 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
321
Fork
20
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Thanks for all the work you've put into this!

To start: I'm on windows, talking to the API via port 8188. I'm using a remote computer with an A100 GPU and running comfyui there. That comfyui is forwarded to my local machine via VS Code. I installed using the .ccx file on January 7 2024. I have used A1111 and comfyui a decent amount, and have also used a Krita extension with comfyui.

I'm trying to run a basic img2img workflow [test_miku_img2img_api.json](https://github.com/AbdullahAlfaraj/Comfy-Photoshop-SD/files/13854141/test_miku_img2img_api.json) in the custom workflows tab and I have a node that looks like this:
![image](https://github.com/AbdullahAlfaraj/Comfy-Photoshop-SD/assets/82120034/2ab5b4cc-124d-4501-ab56-d333f4f9b284)

I can upload from the canvas manually to get something into that node, but it is the only way for me to input into that node. When I click the "Sync Current Layer" button it marks the current layer as red:
![image](https://github.com/AbdullahAlfaraj/Comfy-Photoshop-SD/assets/82120034/1e160fe9-d646-486c-87e3-7015065fb986)

I can unmark the layer with right click, then I can click the sync current layer button again to mark the layer as red. Point being that the button press is definitely doing something. The Sync from Canvas button does not work. This is true if I have something selected via the Marquee tool and also if I have nothing selected. Either way the input image that gets passed in appears to just be a white square:
![image](https://github.com/AbdullahAlfaraj/Comfy-Photoshop-SD/assets/82120034/ca336832-5ac2-40ed-a67b-b7e9a2ccff58)

Note that this is still true even if I don't have a white background (note the background layer is not visible and is also not marked red)
![image](https://github.com/AbdullahAlfaraj/Comfy-Photoshop-SD/assets/82120034/6a7543ab-1a98-4cc4-8ac5-42fac3c055ec)

I can confirm that the workflow works because if I turn the denoising strength up to 1 then I can get an image:
![image](https://github.com/AbdullahAlfaraj/Comfy-Photoshop-SD/assets/82120034/fcfcfb2e-509c-4569-bc8f-aad8e23d9aa5)

The "Load Image from Canvas" button will work if I have a selection:
![image](https://github.com/AbdullahAlfaraj/Comfy-Photoshop-SD/assets/82120034/9df5d2f7-e956-4eca-bd1e-3d12b4113def)

And I can use that as the input for my workflow. That being said, that button doesn't help if I want to do live img2img for instance.

I tried poking around in the logs (mostly because of other crashes and timeouts related to both regular and custom workflow bugs), but there are a lot of messages spread between multiple log files, so I'm not sure what would be helpful for me to attach for you.

Here's a screencap of my settings page:
![image](https://github.com/AbdullahAlfaraj/Comfy-Photoshop-SD/assets/82120034/4fd52b1e-7a2e-4d82-b7ac-581dd0f41ee4)

Last note is that the regular txt2img setting works, although sometimes it does not actually send anything to comfyui (confirmed via the comfyui.log file) and hangs while the loading bar goes upwards of 200%. So I do know the plugin is able to talk to my comfyui server at least sometimes. I haven't had a hang/infinite progress bar issue yet with a custom workflow.

---

Let me know if there's any testing you would like me to do or any logs files that might help.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.