fofr / cog-comfyui

Run ComfyUI with an API
https://replicate.com/fofr/any-comfyui-workflow
MIT License
500 stars 110 forks source link

Add Remove BG Custom Node, and PiXL #61

Closed akhil20187 closed 5 months ago

akhil20187 commented 5 months ago

Hi, I am using ComfyUI in replicate and is a great tool. I have a request

RemoveBG Custom Node : https://github.com/Jcd1230/rembg-comfyui-node Checkpoint : PiXL Anime : https://civitai.com/models/260599/pixl-animecartooncomic-style

fofr commented 5 months ago

I've added pixlAnimeCartoonComic_v10.safetensors

akhil20187 commented 5 months ago

Thanks a lot. Anything with Remove BG ?

On Wed, 17 Apr 2024 at 2:48 PM, fofr @.***> wrote:

I've added pixlAnimeCartoonComic_v10.safetensors

— Reply to this email directly, view it on GitHub https://github.com/fofr/cog-comfyui/issues/61#issuecomment-2060799346, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESZIYWJDW2CSXFGIC7PZTLY5Y47VAVCNFSM6AAAAABGGJQ3BKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRQG44TSMZUGY . You are receiving this because you authored the thread.Message ID: @.***>

akhil20187 commented 5 months ago

@fofr - Facing issue when I have added the pixlAnimeCartoonComic . I believe it's getting added to Loras and not the checkpoint folder . Also if there are any other issue - Please check.

Please find the log below:

==================================== prediction-xtd3tea15nrgg0cexpavjpbrkm-logs.txt Inputs uploaded to /tmp/inputs: input.jpg

Checking inputs ✅ /tmp/inputs/input.jpg

Checking weights ⚠️ RMBG-1.4/model.pth is for non-commercial use only. Unless you have obtained a commercial license. Details: https://github.com/fofr/cog-comfyui/blob/main/weights_licenses.md ⏳ Downloading RMBG-1.4/model.pth to ComfyUI/custom_nodes/ComfyUI-BRIA_AI-RMBG/RMBG-1.4 ⌛️ Downloaded RMBG-1.4/model.pth in 0.27s, size: 168.53MB ✅ RMBG-1.4/model.pth ⏳ Downloading pixlAnimeCartoonComic_v10.safetensors to ComfyUI/models/loras Error: unexpected http status http://storagecache-ch-las1-0.storagecache-ch-las1.tenant-replicate-prdsvcs.svc.cluster.local/weights.replicate.delivery/default/comfy-ui/loras/pixlAnimeCartoonComic_v10.safetensors.tar: 404 Not Found Traceback (most recent call last): File "/root/.pyenv/versions/3.10.6/lib/python3.10/site-packages/cog/server/worker.py", line 217, in _predict result = predict(**payload) File "/src/predict.py", line 89, in predict wf = self.comfyUI.load_workflow(workflow_json or EXAMPLE_WORKFLOW_JSON) File "/src/helpers/comfyui.py", line 232, in load_workflow self.handle_weights(wf) File "/src/helpers/comfyui.py", line 114, in handle_weights self.weights_downloader.download_weights(weight) File "/src/weights_downloader.py", line 24, in download_weights self.download_if_not_exists( File "/src/weights_downloader.py", line 43, in download_if_not_exists self.download(weight_str, url, dest) File "/src/weights_downloader.py", line 53, in download subprocess.check_call( File "/root/.pyenv/versions/3.10.6/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['pget', '--log-level', 'warn', '-xf', 'https://weights.replicate.delivery/default/comfy-ui/loras/pixlAnimeCartoonComic_v10.safetensors.tar', 'ComfyUI/models/loras']' returned non-zero exit status 1.

akhil20187 commented 5 months ago

hey @fofr , looking forward to hear from you .

fofr commented 5 months ago

Sorry about that, the lora is indeed going to the wrong place, I will fix shortly.

fofr commented 5 months ago

This should be working now.

fofr commented 5 months ago

Latent diffusion #66 is a good alternative to REMBG too

akhil20187 commented 5 months ago

Great!! Thanks a lot for the update. Will be checking it out.

Regards Akhilesh

On Mon, 22 Apr 2024 at 9:28 PM, fofr @.***> wrote:

Latent diffusion #66 https://github.com/fofr/cog-comfyui/pull/66 is a good alternative to REMBG too

— Reply to this email directly, view it on GitHub https://github.com/fofr/cog-comfyui/issues/61#issuecomment-2070011152, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESZIYSFDLVUDK7E5XMRWPTY6UXSRAVCNFSM6AAAAABGGJQ3BKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZQGAYTCMJVGI . You are receiving this because you authored the thread.Message ID: @.***>

fofr commented 5 months ago

Closing for now, but please reopen if you need something.

akhil20187 commented 5 months ago

Great! It’s working as well On Wed, 24 Apr 2024 at 1:53 PM, fofr @.***> wrote:

Closed #61 https://github.com/fofr/cog-comfyui/issues/61 as completed.

— Reply to this email directly, view it on GitHub https://github.com/fofr/cog-comfyui/issues/61#event-12587891629, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESZIYTPTMMFFXOA246MZTTY65TWPAVCNFSM6AAAAABGGJQ3BKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGU4DOOBZGE3DEOI . You are receiving this because you authored the thread.Message ID: @.***>