—————————————————————————
OSError Traceback (most recent call last)
in ()
38 from utils.inference.core import model_inference
39 from network.AEI_Net import AEI_Net
—> 40 from coordinate_reg.image_infer import Handler
41 from insightface_func.face_detect_crop_multi import Face_detect_crop
42 from arcface_model.iresnet import iresnet100
5 frames
/usr/lib/python3.10/ctypes/__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error, winmode)
372
373 if handle is None:
–> 374 self._handle = _dlopen(self._name, mode)
375 else:
376 self._handle = handle
OSError: libcudart.so.11.0: cannot open shared object file: No such file or directory
]]>—————————————————————————
AttributeError Traceback (most recent call last)
in ()
20
21 try:
—> 22 source = crop_face(source_full, app, crop_size)[0]
23 source = [source[:, :, ::-1]]
24 print(“Everything is ok!”)
2 frames
/usr/local/lib/python3.10/dist-packages/insightface/model_zoo/scrfd.py in detect(self, img, threshold, input_size, max_num, metric)
202 input_size = self.input_size if input_size is None else input_size
203
–> 204 im_ratio = float(img.shape[0]) / img.shape[1]
205 model_ratio = float(input_size[1]) / input_size[0]
206 if im_ratio>model_ratio:
AttributeError: ‘NoneType’ object has no attribute ‘shape’
]]>ブログにありますように、ズーム方向のパラメータはautozoom.pyに記載されている’fltShift’ですので、ここを書き換えて下さい。
上下は修正できませんが、左右の振り幅を変更できます。左に振るか右に振るかは自動で決まるようです。
]]>