[GH-ISSUE #45] Can't change u2_cloth_seg arg (cloth_category), resulting in the output image being triple the expected height #34

Closed
opened 2026-10-30 21:08:38 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @dev-asya on GitHub (Jul 24, 2024).
Original GitHub issue: https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/issues/45

After reading through @danielgatis rembg code, I'm quite certain the argument "cloth_category" is missing, and this is what's causing Issue #1

Here are the original rembg
github.com/danielgatis/rembg@d1e00734f8/rembg/sessions/u2net_cloth_seg.py (L94)

I've forked this repo and added a few lines of code, though I haven't tested it.
My fork.

Hopefully someone much more experienced than me can look at my changes and fix the issue.

Originally created by @dev-asya on GitHub (Jul 24, 2024). Original GitHub issue: https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/issues/45 After reading through @danielgatis rembg code, I'm quite certain the argument "cloth_category" is missing, and this is what's causing Issue #1 Here are the original rembg https://github.com/danielgatis/rembg/blob/d1e00734f8a996abf512a3a5c251c7a9a392c90a/rembg/sessions/u2net_cloth_seg.py#L94 I've forked this repo and added a few lines of code, though I haven't tested it. [My fork.](https://github.com/dev-asya/stable-diffusion-webui-rembg) Hopefully someone much more experienced than me can look at my changes and fix the issue.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AUTOMATIC1111/stable-diffusion-webui-rembg#34
No description provided.