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

visualization #7

Closed
YashwanthReddy27 opened this issue May 30, 2023 · 11 comments
Closed

visualization #7

YashwanthReddy27 opened this issue May 30, 2023 · 11 comments
Labels
feature request New feature or request

Comments

@YashwanthReddy27
Copy link

how do i provide input to the model so that i get the image or video with bboxes with class labels(how can i visualize using a dataset of my own)
i run the validation file with the gen1 data i get only the log files but no image or video file playing showing the labels or bounding boxes

@magehrig
Copy link
Contributor

At the moment, you have to write the code to do this yourself. Currently, the repo only provides the code to replicate the results in the paper without any add-ons.

But your request is reasonable, and it would be nice to visualize the output. I hope that I can provide an example soon. In the meantime, you can have a look at the code that already logs predictions for a start.

@magehrig magehrig added the feature request New feature or request label May 30, 2023
@YashwanthReddy27
Copy link
Author

Thank you magehrig for considering the request

@YashwanthReddy27
Copy link
Author

when we run validation.py I'm getting the log files so are those given from the code that you mentioned here or can you please explain on how we can use or pass arguments to detection.py to get the logs predictions

@magehrig
Copy link
Contributor

magehrig commented May 31, 2023

the logging happens in the pytorch lightning callback which is not used in validation.py. The following could work for you:

  • add the visualization callback to the list of callbacks in the validation.py script. Here it is done in the train.py script.
  • Instead of logging to the logger here, write your own code that writes to disk.

I cannot help you more at this point because I don't have much time. I appreciate your understanding.

@YashwanthReddy27
Copy link
Author

Thank you for taking your time and answering the question have a great day!

@YashwanthReddy27
Copy link
Author

YashwanthReddy27 commented Jun 7, 2023

Hi magehrig i do not have much knowledge on pytorch lightning i'm going through the documentation but i try to run the prediction from trainer but i'm getting this error could you please help the problem is with the dataloader could you tellme how did you call val_dataloader from lightning module i tried the similaar way as you it is calling predict dataloader but yet i'm facing this error
Screenshot 2023-06-07 104601

@magehrig
Copy link
Contributor

magehrig commented Jun 7, 2023

According to the error message, you are passing a dict as input to the network (the first operation is a conv which throws this error) instead of a Tensor.

@YashwanthReddy27
Copy link
Author

Okay thank you magehrig

@YashwanthReddy27
Copy link
Author

Can you tell how the iterations are being calculated like how many iterations are needed for one event and what one iteration is doing everytime

@YashwanthReddy27
Copy link
Author

YashwanthReddy27 commented Jun 16, 2023

hi magehrig in one of the videos that you published in youtube it was detecting objects in events can you tell on how you guys achieved it on how your are detecting objects in EVENTS by playing the event file
could you please shed some light on how to achieve this output using the dataset you mentionedScreenshot 2023-06-16 105709
Screenshot 2023-06-16 105723

@YashwanthReddy27
Copy link
Author

hey magehrig could you please consider answering this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants