CPPE-Dataset icon indicating copy to clipboard operation
CPPE-Dataset copied to clipboard

Update annotations on data_loader

Open danielsyahputra opened this issue 2 years ago • 0 comments

:camera: Screenshots

Changes

:page_facing_up: Context

I realized in your code before, that you just assign '1' as the labels for each object. This is proved by creating a tensor of ones for labels like this labels = torch.ones((num_objs,), dtype=torch.int64). When I tried my model to do inference on my sample image, I got the labels '1' for each object and then I realized there was something wrong with the dataset.

:pencil: Changes

I just add a little bit of code on your custom Cppe dataset in torch.py. Now, the labels not only '1' for each object in an image, but also have a correspondence with each object based on your dataset.

:paperclip: Related PR

:no_entry_sign: Breaking

None so far.

:hammer_and_wrench: How to test

:stopwatch: Next steps

danielsyahputra avatar Sep 11 '22 06:09 danielsyahputra