Update README.md
Browse files
README.md
CHANGED
|
@@ -37,8 +37,8 @@ python
|
|
| 37 |
from pose_estimation_recognition_utils_rtmlib import RTMLifting, RTMPoseEstimator2D
|
| 38 |
|
| 39 |
# 1. 2D PoseEstimation eines Bilder
|
| 40 |
-
estimator = RTMPoseEstimator2D()
|
| 41 |
-
result2D = estimator.process_image_from_file(image_path="
|
| 42 |
|
| 43 |
# 2. Lifting Model laden
|
| 44 |
lifting = RTMLifting(num_keypoints=133, mode="ai")
|
|
@@ -53,9 +53,9 @@ python
|
|
| 53 |
|
| 54 |
from pose_estimation_recognition_utils_rtmlib import ModelLoader, Simple3DPoseLiftingModel
|
| 55 |
|
| 56 |
-
model=Simple3DPoseLiftingModel(num_keypoints=num_keypoints)
|
| 57 |
-
model.to(device)
|
| 58 |
-
model.eval()
|
| 59 |
|
| 60 |
model_loader=ModelLoader(
|
| 61 |
repo_id="fhswf/rtm133lifting",
|
|
@@ -63,7 +63,7 @@ model_loader=ModelLoader(
|
|
| 63 |
cache_dir=cache_dir,
|
| 64 |
)
|
| 65 |
|
| 66 |
-
state_dict=model_loader.load_model(device=device)
|
| 67 |
model.load_state_dict(state_dict)
|
| 68 |
|
| 69 |
📊 Evaluation & Leistung
|
|
|
|
| 37 |
from pose_estimation_recognition_utils_rtmlib import RTMLifting, RTMPoseEstimator2D
|
| 38 |
|
| 39 |
# 1. 2D PoseEstimation eines Bilder
|
| 40 |
+
estimator = RTMPoseEstimator2D()\
|
| 41 |
+
result2D = estimator.process_image_from_file(image_path="Testbild.jpg")
|
| 42 |
|
| 43 |
# 2. Lifting Model laden
|
| 44 |
lifting = RTMLifting(num_keypoints=133, mode="ai")
|
|
|
|
| 53 |
|
| 54 |
from pose_estimation_recognition_utils_rtmlib import ModelLoader, Simple3DPoseLiftingModel
|
| 55 |
|
| 56 |
+
model=Simple3DPoseLiftingModel(num_keypoints=num_keypoints)\
|
| 57 |
+
model.to(device)\
|
| 58 |
+
model.eval()\
|
| 59 |
|
| 60 |
model_loader=ModelLoader(
|
| 61 |
repo_id="fhswf/rtm133lifting",
|
|
|
|
| 63 |
cache_dir=cache_dir,
|
| 64 |
)
|
| 65 |
|
| 66 |
+
state_dict=model_loader.load_model(device=device)\
|
| 67 |
model.load_state_dict(state_dict)
|
| 68 |
|
| 69 |
📊 Evaluation & Leistung
|