DALI icon indicating copy to clipboard operation
DALI copied to clipboard

How to turn off warning log

Open tendar opened this issue 1 year ago • 2 comments

Describe the question.

Hi,

During training task, DALI throw out too many waring log, as follows: "operators/image/crop/bbox_crop.cc:784] Could not find a valid cropping window to satisfy the specified requirements (attempted 64 times)."

How to turn off these warning log. Thanks.

Check for duplicates

  • [x] I have searched the open bugs/issues and have found no duplicates for this bug report

tendar avatar Nov 01 '24 06:11 tendar

Hi @tendar. That warning means that the operator try to come up with a random cropping window satisfying the given requirements. Perhaps the given requirements are either impossible or hard to meet with the input bounding bounding boxes you are providing. Can you give more details on your usage of the operator. We don't have a way to simply turn off warning logs. What we could advise is relaxing the cropping window constraints so they can be met. If you have a valid use-case, we can also look into adding an option to silence this warning.

jantonguirao avatar Nov 04 '24 13:11 jantonguirao

Hi @jantonguirao , I've also faced a similar problem and looking for a workaround how to disable these logs. Basically, I've adopted mosaic augmentation from dali tensorflow use case example to pytorch. It works well as expected, but the std has plenty of logs. Do you have any ideas how to turn it off?

[/opt/dali/dali/operators/image/crop/bbox_crop.cc:794] Could not find a valid cropping window to satisfy the specified requirements (attempted 64 times). Using the best cropping window so far (best_metric=0)
[/opt/dali/dali/operators/image/crop/bbox_crop.cc:794] Could not find a valid cropping window to satisfy the specified requirements (attempted 64 times). Using the best cropping window so far (best_metric=0)[/opt/dali/dali/operators/image/crop/bbox_crop.cc:794] Could not find a valid cropping window to satisfy the specified requirements (attempted 64 times). Using the best cropping window so far (best_metric=0)

[/opt/dali/dali/operators/image/crop/bbox_crop.cc:794] Could not find a valid cropping window to satisfy the specified requirements (attempted 64 times). Using the best cropping window so far (best_metric=0)
[/opt/dali/dali/operators/image/crop/bbox_crop.cc:794] Could not find a valid cropping window to satisfy the specified requirements (attempted 64 times). Using the best cropping window so far (best_metric=0)
[/opt/dali/dali/operators/image/crop/bbox_crop.cc:794] Could not find a valid cropping window to satisfy the specified requirements (attempted 64 times). Using the best cropping window so far (best_metric=0)
[/opt/dali/dali/operators/image/crop/bbox_crop.cc:794] Could not find a valid cropping window to satisfy the specified requirements (attempted 64 times). Using the best cropping window so far (best_metric=0)
[/opt/dali/dali/operators/image/crop/bbox_crop.cc:794] Could not find a valid cropping window to satisfy the specified requirements (attempted 64 times). Using the best cropping window so far (best_metric=0)[/opt/dali/dali/operators/image/crop/bbox_crop.cc:794] Could not find a valid cropping window to satisfy the specified requirements (attempted 64 times). Using the best cropping window so far (best_metric=0)
[/opt/dali/dali/operators/image/crop/bbox_crop.cc:794] Could not find a valid cropping window to satisfy the specified requirements (attempted 64 times). Using the best cropping window so far (best_metric=0)

...

discort avatar Dec 20 '24 15:12 discort