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

can't get segnet-camera to work #382

Closed
gillamkid opened this issue Aug 9, 2019 · 3 comments
Closed

can't get segnet-camera to work #382

gillamkid opened this issue Aug 9, 2019 · 3 comments

Comments

@gillamkid
Copy link

Using the guide on https://github.com/dusty-nv/jetson-inference/blob/master/docs/segnet-console.md I was able to get segnet-console working on my personal machine using the pre-trained aerial model. Here is the exact command I used (slightly different than the command in the tutorial):

./segnet-console drone_0255.png sam_output.jpg \
--prototxt=networks/FCN-Alexnet-Aerial-FPV-720p/fcn_alexnet.deploy.prototxt \
--model=networks/FCN-Alexnet-Aerial-FPV-720p/snapshot_iter_10280.caffemodel \
--labels=networks/FCN-Alexnet-Aerial-FPV-720p/fpv-labels.txt \
--colors=networks/FCN-Alexnet-Aerial-FPV-720p/fpv-deploy-colors.txt \
--input_blob=data \
--output_blob=score_fr_21classes

The output image comes out as expected with the overlay differentiating the sky from the ground.

I slightly modified the first line of the command as follows to be a segnet-camera version of the command:

./segnet-camera \
--prototxt=networks/FCN-Alexnet-Aerial-FPV-720p/fcn_alexnet.deploy.prototxt \
--model=networks/FCN-Alexnet-Aerial-FPV-720p/snapshot_iter_10280.caffemodel \
--labels=networks/FCN-Alexnet-Aerial-FPV-720p/fpv-labels.txt \
--colors=networks/FCN-Alexnet-Aerial-FPV-720p/fpv-deploy-colors.txt \
--input_blob=data \
--output_blob=score_fr_21classes

No errors are printed to the console, and a popup appears where I can see the live video from the TX2 dev board camera, however there is no overlay at all. No status bar, no change in coloration.

I've tried using a webcam. Didn't work. I Googled everything I could think of but have not found any posts from someone who was able to get segnet-camera working.

I'm using a Jetson TX2 that I just imaged with the most recent version of Jetpack yesterday.

@gillamkid
Copy link
Author

I tried it on a different TX2, one with an older version of Jetpack. I tried running it normally and then with overclocking. Still no overlay.

@gillamkid
Copy link
Author

Solved the problem. segnet-camera.cpp displays imgRGBA (the original video image) and not outCUDA (the overlayed video image). I'll make a pull request.

@gillamkid
Copy link
Author

Here's the pull request
#386

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

No branches or pull requests

1 participant