automl icon indicating copy to clipboard operation
automl copied to clipboard

UserWarning: __floordiv__ is deprecated && assert (boxes1[:, 2:] >= boxes1[:, :2]).all()

Open chenqq1 opened this issue 2 years ago • 0 comments

When I use the Lion_pytorch, it comes out "UserWarning: floordiv is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor'). max_size = (max_size + (stride - 1)) // stride * stride" After a few iterations of training,an AssertionError is reported: assert (boxes1[:, 2:] >= boxes1[:, :2]).all() . My dataset is fine, because there are no errors when I train with other optimizers. How do I solve it?

chenqq1 avatar Feb 23 '23 02:02 chenqq1