Skip to content
Snippets Groups Projects
Commit 64fbf0a0 authored by 骆阳's avatar 骆阳
Browse files

fix retinaface train fail

parent cfde9bcb
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ def read_dataset(img_path, annotation):
if isinstance(img_path, str):
img = cv2.imread(img_path)
else:
img = cv2.imread(img_path.tostring().decode("utf-8"))
img = cv2.imread(img_path.item())
labels = annotation
anns = np.zeros((0, 15))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment