dusty-nv / jetson-inference

Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.
https://developer.nvidia.com/embedded/twodaystoademo
MIT License
7.58k stars 2.94k forks source link

How can I train segmentation using FCN-Alexnet with 360p images? #238

Closed teoac closed 1 year ago

teoac commented 6 years ago

I'm following the examples of segmentation. I don't have enough memory on my graphic card, so I want to train with 360p images. (When I try training with 720p images, I always meet the 'out of memory' error.) After training with 360p images, the results on the host PC are very good and similar to tutorials. But when I test on the jetson TX2, the results are not good. Is there any additional work to use on my jetson TX2 when I train using 360p images?

output_0255 output_0428 #

bpinaya commented 5 years ago

What graphics card do you have? Are you using batches greater than 1? Maybe that's the issue. You shouldn't have problems to train with 720p

teoac commented 5 years ago

@bpinaya Thank you for your reply. My graphics card is GTX 1060Ti w/ 3GB RAM. I cannot sure what batch size was set, but the size was larger than one. As I said, the test result is very good on my host PC. But the test result on Jetson TX2 is poor as you can see above. I cannot understand why the result is not the same even if I used the same deep learning model.

bpinaya commented 5 years ago

Uhm... don't worry, let's try to figure it out? What command are you using to deploy the network in the TX2? Maybe you are choosing a different network. also there will be some low resolution since Dustin is not using the deconvolution layer and just doing bilinear interpolation, even though the results should look better. From what I can see in your image it seems that the results are shifted since the slope seems to be the same.