justusschock / shapenet

PyTorch implementation of "Super-Realtime Facial Landmark Detection and Shape Fitting by Deep Regression of Shape Model Parameters" predicting facial landmarks with up to 400 FPS

Home Page:https://shapenet.rtfd.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error in script predict_from_net.py

zyzray opened this issue · comments

In ./shapenet/scripts/predict_from_net.py line 118
pred = net(img_tensor).cpu().numpy()["pred"][0]
should be
pred = net(img_tensor).cpu().numpy()[0]

obviously net(img_tensor).cpu().numpy() is not a dict

Which delira version are you using? Because with the current version it should be a dict

I'm using 0.4.1
After removing ["pred"] it works fine

That's strange. It should be a dict. I don't know, when I have the time to look into this, but I'll try to do so asap