JackXiong
JackXiong
> Sincerely appreciate for your reply. Get it! I have trained the model ,but I don't know how to set "extract_features_single(model, fpath)",the model is model_best.pth.tar? and I test from PIL...
thanks,I will try it
这个是我原始的用于人脸比对的数据库,实际运行的时候不需要这个
def predict(models, img, save_image=False): try: bounds, lmarks = gen_face(MTCNN_DETECT, img, only_one=False) ret = MTCNN_DETECT.extract_image_chips(img, lmarks, padding=0.4) except Exception as ee: ret = None print(img.shape, ee) if not ret: print("no face")...
好的,谢了,我先看看那个解码函数
好的,谢了,我测试看看
Hi ihpdep, Thank you !!! I have found the color map matrix on the write's homepage yesterday. regrads xiongzhang
# third_party: gflags #FetchContent_Declare(gflags # URL https://github.com/gflags/gflags/archive/v2.2.1.zip # URL_HASH SHA256=4e44b69e709c826734dbbbd5208f61888a2faf63f239d73d8ba0011b2dccc97a #) #FetchContent_MakeAvailable(gflags) find_package(gflags REQUIRED) find_package(gflags COMPONENTS nothreads_static)