Wiki » History » Version 4
« Previous -
Version 4/10
(diff) -
Next » -
Current version
Petri Partanen, 19/05/2020 16:02
Wiki¶
Promising
https://github.com/marian-margeta/gait-recognition
```
$ python dummy_pose_estimation.py
Traceback (most recent call last):
File "dummy_pose_estimation.py", line 5, in <module>
from scipy.misc import imresize, imread
ImportError: cannot import name 'imresize'
```¶
Solved by using ImageIO:
```
import imageio
from PIL import Image
from human_pose_nn import HumanPoseIRNetwork
net_pose = HumanPoseIRNetwork()
net_pose.restore('models/MPII+LSP.ckpt')
img = imageio.imread('images/patient.png')
img = Image.fromarray(img).resize((299, 299))
```