UniFace: A Unified Face Analysis Library for Python | Detection, alignment, landmarks, face-mesh, recognition, parsing, gaze, attributes and anti-spoofing under one API.
Python computer-visiondeep-learningface-alignmentface-analysisface-anonymizationface-anti-spoofingface-attributesface-detectionface-meshface-parsingface-quality-assessmentface-recognitionface-segmentationface-trackingfacial-landmarksgaze-estimationhead-pose-estimationonnxruntimeportrait-mattingpython
fix: Add cache dir check (#67)
Yakhyokhuja Valikhujaevea0b56f7e025
diff --git a/uniface/model_store.py b/uniface/model_store.pyindex ce8bc7e..f910a46 100644--- a/uniface/model_store.py+++ b/uniface/model_store.py@@ -51,6 +51,7 @@ def verify_model_weights(model_name: Enum, root: str = '~/.uniface/models') -> s'/home/user/.uniface/models/retinaface_mnet_v2.onnx'"""+ root = os.getenv('UNIFACE_CACHE_DIR', root)root = os.path.expanduser(root)os.makedirs(root, exist_ok=True)