InpaintProcessor crashes when padding_mask_crop is set and a dimension is omitted
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 82/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- computer-vision
Hướng nghiên cứu
Bắt đầu bằng cách đọc InpaintProcessor.preprocess() trong src/diffusers/image_processor.py và theo dõi cách suy ra kích thước ảnh khi bỏ qua height hoặc width. Tái hiện lỗi bằng ví dụ CPU trong issue, sau đó kiểm tra các bài kiểm thử gần đó của bộ xử lý ảnh để xác định nơi thêm trường hợp hồi quy. Công việc hoàn tất khi tiền xử lý với padding_mask_crop thành công dù bỏ qua một trong hai chiều và bài kiểm thử hồi quy đạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
InpaintProcessor.preprocess() works without height and width until I set padding_mask_crop. With cropping enabled, omitting either dimension raises a TypeError.
from PIL import Image
from diffusers.image_processor import InpaintProcessor
image = Image.new("RGB", (64, 48))
mask = Image.new("L", image.size)
mask.paste(255, (24, 16, 40, 32))
InpaintProcessor().preprocess(image, mask=mask, padding_mask_crop=8)
TypeError: unsupported operand type(s) for /: 'NoneType' and 'NoneType'
Passing both dimensions works. The crop calculation divides width by height before the processor has inferred the missing dimensions. I expected the omitted dimensions to be inferred from the input image, as they are without cropping.
Reproduced on main at 08d5de30 (Diffusers 0.44.0.dev0) on CPU. No model weights are needed.
Would it make sense to reuse the image processor's existing size inference before computing the crop? I can send a small PR with a regression test if that approach looks right.
- Ngôn ngữ chính
- Python
- Star
- 35k
- Fork
- 7.5k
- Merge trung bình
- 2 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 58
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của huggingface/diffusers
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
huggingface/diffusers#15436 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
LTXEulerAncestralRFScheduler skips signal scaling with s_noise=0Có thể đã có người làm @hparik11 đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
huggingface/diffusers#15423 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs: 13 docstrings document parameters their functions don't haveCó thể đã có người làm @M-Colley đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
huggingface/diffusers#15363 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`ZImageImg2ImgPipeline` / `ZImageInpaintPipeline`: explicit height/width different from the input image raises RuntimeErrorCó thể đã có người làm @chessing234 đã nhận 11 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
huggingface/diffusers#15337 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Multi-vector textual inversion uses only the first vector when the token has uppercase letters (transformers v5)Có thể đã có người làm @houyunsun đã nhận 13 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
huggingface/diffusers#15313 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của huggingface/diffusers
Issue tương tự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
MakazhanAlpamys/Soup#3589 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
ClickHouse/clickhouse-connect#1266 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
AutoGrowth: new time column nameĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
biosustain/growthcurves_app#89 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`LogProxyConsumer._on_relation_departed` raises `APIError` when the promtail service does not existĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
canonical/loki-k8s-operator#695 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày