Closed JivanRoquet closed 4 years ago
Complement to stick even more to your example in test_pose_vgg.ipynb
:
img_test = cv2.imread('/storage/whole-dresses/{}.jpg'.format(random.sample(images, 1)[0]))
img_test_padded, pad = pad_right_down_corner(img_test, stride, padValue)
input_img = np.transpose(np.float32(img_test_padded[:,:,:,np.newaxis]), (3,0,1,2))
pred = pose_model.predict(input_img)
Still the exact same error.
Silly me, was following the test_pose_vgg.ipynb
example while using MobileNet model...
When following MobileNet notebook example, all works well!
By the way, do you have any plan to make the vgg model/weights downloadable? There really seems to be a huge difference in quality/accuracy when reading through your example notebooks.
When trying to get results using an image, an error happens.
Code:
The following error happens:
I don't understand how either
[1,32,55,34]
or[1,96,28,28]
relate to the shape of the image I'm using. The test_pose_vgg example notebook mentions in the comments that the shape should be (1, width, height, channels) andimg_test.shape
confirms it.Does the model only work with square images, or is there something that I'm missing?