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

get_view include aloscene objects #66

Open
Johansmm opened this issue Sep 15, 2021 · 0 comments
Open

get_view include aloscene objects #66

Johansmm opened this issue Sep 15, 2021 · 0 comments
Labels
aloscene aloscene enhancement New feature or request

Comments

@Johansmm
Copy link
Contributor

In an inference procedure, when we try to use get_view method to show the inference, the inference is ignored if we push it directly inside the method, drawing the GT objects and thus generates 'false views'. The following code try to explain better the idea:

import alonet

detr = alonet.detr.LitDetr(weights = "detr-r50")
data_loader = alonet.detr.CocoDetection2Detr(sample = True, batch_size = 1)

frame = next(iter(data_loader.val_dataloader()))
frame = frame[0].batch_list(frame)

pred_boxes = detr.inference(detr(frame))
pred_boxes[0].labels[:] = 1000 # Change ID to explain better the problem

# Ignore predictions and draw GT
frame.get_view([pred_boxes[0]]).render()

# Correct view
frame.get_view([pred_boxes[0].get_view(frame[0])]).render()

Some of this things to do:

  • Launch an error to show the misunderstanding of the use of aloscene.
  • Update get_view to enable this feature.
@Johansmm Johansmm added aloscene aloscene enhancement New feature or request labels Sep 15, 2021
@Johansmm Johansmm changed the title get_view include view of aloscene objects get_view include aloscene objects Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aloscene aloscene enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant