Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to turn off warning log #5695

Open
1 task done
tendar opened this issue Nov 1, 2024 · 2 comments
Open
1 task done

How to turn off warning log #5695

tendar opened this issue Nov 1, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@tendar
Copy link

tendar commented Nov 1, 2024

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

  • I have searched the open bugs/issues and have found no duplicates for this bug report
@tendar tendar added the question Further information is requested label Nov 1, 2024
@jantonguirao jantonguirao assigned jantonguirao and unassigned banasraf Nov 4, 2024
@jantonguirao
Copy link
Contributor

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.

@discort
Copy link

discort commented Dec 20, 2024

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)

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants