Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

DeepProfiler produces incorrect crops if provided with images of different sizes

Đang mở
#355 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
computer-vision

Hướng nghiên cứu

Bắt đầu với deepprofiler/imaging/boxes.py tại get_cropping_regions(), sau đó xem lại pull request được liên kết #354 và tài liệu về hình ảnh có kích thước thay đổi. Tái hiện profiling với các hình ảnh có kích thước khác config["dataset"]["images"] và so sánh các phần crop. Hoàn thành khi profiling xử lý đúng hình ảnh có kích thước thay đổi và tài liệu làm rõ hành vi giữa chế độ training và profile-mode.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

In profiling mode, if provided with images of different sizes than the specified in the config (in config["dataset"]["images"][{"width", "height"}]), DP will silently generate incorrect crops.

I think the issue comes from get_cropping_regions(), where the config-specified image size is used to normalise the bounding indices. Note that there's no exception raised when the input image mismatches the specified shape.

I also think the docs are slightly confusing, as it's mentioned:

The size of images is, in principle, flexible and DeepProfiler can work with different resolutions and image dimensions.

Please correct me if I'm wrong, but I think this is the only reason making DeepProfiler incompatible with images of variable size (for profiling) and could easily be solved by reading the image dimensions dynamically. I opened a PR to implement just that - https://github.com/cytomining/DeepProfiler/pull/354.

It'd be great if you could also update the docs to clarify how DeepProfiler handles images of variable size in training vs. profile mode.

Ngôn ngữ chính
Python
Star
129
Fork
52
Merge trung bình
5 giờ 20 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cytomining/DeepProfiler

Tất cả issue của cytomining/DeepProfiler

Issue tương tự

Thêm issue về Python

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.