Skip to content

[Bug]: DLIB uses a small sliding window even when the upsampling limit is set to 0  #2825

@tintin-py

Description

@tintin-py

What Operating System(s) are you seeing this problem on?

Windows

dlib version

19.24.99

Python version

3.9.13

Compiler

GCC 6.3.0

Expected Behavior

I expect when the up-sampling limit is 0 then DLIB would use a sliding window that is approximately same as the bounding boxes that I have marked. I can't see any way of setting the sliding window size manually and this seems to be a major problem.

How is this sliding window dimension automatically picked up?

Current Behavior

The sliding window size is significantly smaller than the bounding boxes I have marked even when the up-sampling limit is set to 0. I can't set this window manually.

Steps to Reproduce

Here is the training.xml file

<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type='text/xsl' href='image_metadata_stylesheet.xsl'?>
<dataset>
<name>imglab dataset</name>
<comment>Created by imglab tool.</comment>
<images>
  <image file='patches\0.jpg' width='4962' height='3508'>
    <box top='180' left='625' width='2000' height='195'/>
    <box top='180' left='2590' width='2000' height='195'/>
  </image>
  <image file='patches\1.jpg' width='4963' height='3508'>
  </image>
  <image file='patches\4.jpg' width='4962' height='3508'>
    <box top='240' left='2856' width='2000' height='195'/>
    <box top='236' left='1232' width='2000' height='195'/>
  </image>
  <image file='patches\5.jpg' width='4963' height='3508'>
  </image>
  <image file='patches\8.jpg' width='4962' height='3508'>
    <box top='200' left='136' width='2000' height='195'/>
    <box top='196' left='1912' width='2000' height='195'/>
  </image>
  <image file='patches\9.jpg' width='4963' height='3508'>
    <box top='189' left='876' width='2000' height='195'/>
  </image>
</images>
</dataset>

As you can see, all the bounding boxes are of the same dimension. That's why I was expecting that up-sampling is not required and DLIB will just use the sliding window dimension same as the bounding boxes.

The training code is similar to that of the example provided.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions