frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Alert: Beginning Tuesday, June 25th, we will be freezing this site and migrating the content and forums to our new home at https://forums.intel.com/s/topic/0TO0P000000PqZDWA0/intel-neural-compute-sticks. Check it out now!

Mobilenet-ssd caffe model gives NaN as output

Hi everyone, I am using mobilenet-ssd caffe model for detection. Using caffemodel and prototxt file from here : https://github.com/chuanqi305/MobileNet-SSD
Using the caffemodel and prototxt I was able to generate graph file without any error using mvNCCompile

But whenever I load my output after detection I see NAN in the output.

        input_image = cv2.resize(input_image,(300,300), cv2.INTER_LINEAR)
        display_image = input_image
        height_crop = display_image.shape[0]
        width_crop = display_image.shape[1]
        input_image = input_image.astype(np.float32)
        input_image = np.subtract(input_image,127.5)
        input_image = np.multiply(input_image,0.007843)
        input_image = input_image.astype(np.float32)
        graph.LoadTensor(input_image, 'user object')
        out, userobj = graph.GetResult()

Any directions are appreciated , thank you .

Comments

Sign In or Register to comment.