Bug in finetune_region.py after latest update
Love the model update! I think there's a small bug in finetune_region.py introduced with the addition of the log-scale size encoding. Now that we have https://github.com/vikhyat/moondream/blob/f74a1219f666a946f1a5904f7a4299485239fa42/moondream/finetune/finetune_region.py#L204,
the additional extend here https://github.com/vikhyat/moondream/blob/f74a1219f666a946f1a5904f7a4299485239fa42/moondream/finetune/finetune_region.py#L205-L210
is unnecessary and results in a TypeError (only integer tensors of a single element can be converted to an index) when the loss is called.
Thanks for reporting, tagging @EthanReid to take a look.
@dawnfinzi Thank you for pointing this out! Sorry for the delay, the fix can be found here: https://github.com/vikhyat/moondream/pull/277