You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
启动deploy_api.py后,通过api访问,人像分割模型参数,使用hivision_modnet、rmbg-1.4、birefnet-v1-lite 都没有问题,使用modnet_photographic_portrait_matting时,python后台会看到报错(截取了最后部分)
File "/opt/homebrew/anaconda3/envs/HivisionIDPhotos/lib/python3.10/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
File "/Volumes/Untitled/Keep/HivisionIDPhotos-master/deploy_api.py", line 73, in idphoto_inference
result = creator(
File "/Volumes/Untitled/Keep/HivisionIDPhotos-master/hivision/creator/init.py", line 184, in call
adjust_photo(ctx)
File "/Volumes/Untitled/Keep/HivisionIDPhotos-master/hivision/creator/photo_adjuster.py", line 51, in adjust_photo
y_top, y_bottom, x_left, x_right = U.get_box(
File "/Volumes/Untitled/Keep/HivisionIDPhotos-master/hivision/creator/utils.py", line 87, in get_box
idx = contours_area.index(max(contours_area))
ValueError: max() arg is an empty sequence
请问大佬们有没有解决办法啊
The text was updated successfully, but these errors were encountered:
启动deploy_api.py后,通过api访问,人像分割模型参数,使用hivision_modnet、rmbg-1.4、birefnet-v1-lite 都没有问题,使用modnet_photographic_portrait_matting时,python后台会看到报错(截取了最后部分)
File "/opt/homebrew/anaconda3/envs/HivisionIDPhotos/lib/python3.10/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
File "/Volumes/Untitled/Keep/HivisionIDPhotos-master/deploy_api.py", line 73, in idphoto_inference
result = creator(
File "/Volumes/Untitled/Keep/HivisionIDPhotos-master/hivision/creator/init.py", line 184, in call
adjust_photo(ctx)
File "/Volumes/Untitled/Keep/HivisionIDPhotos-master/hivision/creator/photo_adjuster.py", line 51, in adjust_photo
y_top, y_bottom, x_left, x_right = U.get_box(
File "/Volumes/Untitled/Keep/HivisionIDPhotos-master/hivision/creator/utils.py", line 87, in get_box
idx = contours_area.index(max(contours_area))
ValueError: max() arg is an empty sequence
请问大佬们有没有解决办法啊
The text was updated successfully, but these errors were encountered: