deepinsight / deepinsight/insightface

No module named 'insightface.app' in insightface==0.7.3

Open
#2,387 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29.7k
Forks
6.1k
PR merge metrics
No merged PRs in 30d

Description

I have installed the latest pip lib `insightface==0.7.3`, and I wanna simply replicate the example code in Pypi doc:

```
import cv2
import numpy as np
import insightface
from insightface.app import FaceAnalysis
from insightface.data import get_image as ins_get_image

model = FaceAnalysis(providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
model.prepare(ctx_id=0, det_size=(640, 640))
img = cv2.imread('avatars-test/aardsda01.jpg')
faces = model.get(img)
rimg = model.draw_on(img, faces)
cv2.imwrite("./t1_output.jpg", rimg)
```

But I got the error that:
```
ModuleNotFoundError: No module named 'insightface.app'; 'insightface' is not a package
```

Any idea to fix this? I appreciate any help

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.