Error in python example
See original GitHub issueimport cv2
import numpy as np
import insightface
from insightface.app import FaceAnalysis
from insightface.data import get_image as ins_get_image
app = FaceAnalysis()
app.prepare(ctx_id=0, det_size=(640, 640))
img = ins_get_image('t1')
faces = app.get(img)
rimg = app.draw_on(img, faces)
cv2.imwrite("./t1_output.jpg", rimg)
ModuleNotFoundError Traceback (most recent call last) <ipython-input-3-91a2923a61d1> in <module> 3 import insightface 4 from insightface.app import FaceAnalysis ----> 5 from insightface.data import get_image as ins_get_image 6 7 app = FaceAnalysis()
ModuleNotFoundError: No module named ‘insightface.data’
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
8. Errors and Exceptions — Python 3.11.1 documentation
Look at the following example, which asks the user for input until a valid integer has been entered, but allows the user to...
Read more >Error Types in Python - TutorialsTeacher
Python - Error Types ; IndexError. The IndexError is thrown when trying to access an item at an invalid index. Example: IndexError ;...
Read more >Errors and Exceptions in Python - GeeksforGeeks
Errors are the problems in a program due to which the program will stop the execution. On the other hand, exceptions are raised...
Read more >Python Exceptions (With Examples) - Programiz
Python Built-in Exceptions ; IndexError, Raised when the index of a sequence is out of range. ; KeyError, Raised when a key is...
Read more >Errors and exceptions — Object-Oriented Programming in ...
Syntax errors are mistakes in the use of the Python language, and are analogous to spelling or grammar mistakes in a language like...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
!pip install -U insightface --force-reinstall fixed the issue