mirror of
https://github.com/huchenlei/HandRefinerPortable.git
synced 2026-04-30 11:11:13 +00:00
Fix mediapipe load config
This commit is contained in:
@@ -188,7 +188,7 @@ class MeshGraphormerMediapipe(Preprocessor):
|
|||||||
mean=[0.485, 0.456, 0.406],
|
mean=[0.485, 0.456, 0.406],
|
||||||
std=[0.229, 0.224, 0.225])])
|
std=[0.229, 0.224, 0.225])])
|
||||||
|
|
||||||
base_options = python.BaseOptions(model_asset_path=str( Path(__file__).parent / "hand_landmarker.task" ))
|
base_options = python.BaseOptions(model_asset_buffer=(Path(__file__).parent / "hand_landmarker.task").read_bytes())
|
||||||
options = vision.HandLandmarkerOptions(base_options=base_options,
|
options = vision.HandLandmarkerOptions(base_options=base_options,
|
||||||
min_hand_detection_confidence=0.6,
|
min_hand_detection_confidence=0.6,
|
||||||
min_hand_presence_confidence=0.6,
|
min_hand_presence_confidence=0.6,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
|
|||||||
[project]
|
[project]
|
||||||
name = "handrefinerportable"
|
name = "handrefinerportable"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
version = "2024.01.18.0"
|
version = "2024.02.12.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rtree",
|
"rtree",
|
||||||
"mediapipe",
|
"mediapipe",
|
||||||
|
|||||||
Reference in New Issue
Block a user