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

How can i run it in a realtime image #112

Open
stiglioglu opened this issue Aug 26, 2022 · 5 comments
Open

How can i run it in a realtime image #112

stiglioglu opened this issue Aug 26, 2022 · 5 comments
Labels
good first issue Good for newcomers question Further information is requested

Comments

@stiglioglu
Copy link

How can i run it in a realtime image

@voldemortX
Copy link
Owner

@stiglioglu We don't have camera APIs, if that is what you want.

I think your use case is similar to a video input? We have a video-inference-visualize pipeline:

https://github.com/voldemortX/pytorch-auto-drive/blob/master/docs/VISUALIZATION.md#segmentation-mask-video

@voldemortX voldemortX added good first issue Good for newcomers question Further information is requested labels Aug 26, 2022
@stiglioglu
Copy link
Author

Thank you for your answer. I want to run on ros camera topic. How can I run on snapshot eg image from webcam.

@voldemortX
Copy link
Owner

The general method is read the image, make the testing transforms (e.g., resize), then inference, finally apply specific post-processings. For some lane detection methods, they already have a inference() method, which includes the post-process.

An lane example is

class LaneDetVideo(BaseVideoVisualizer, LaneDetVisualizer):

@stiglioglu
Copy link
Author

where do you read the video frames can you help me i couldn't find it

@voldemortX
Copy link
Owner

where do you read the video frames can you help me i couldn't find it

We use a torch style dataloader for video reading:
https://github.com/voldemortX/pytorch-auto-drive/blob/master/utils/datasets/video.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants