Deeplabcut Live for Multi-Animal
@C-Achard đang làm issue này rồi.
Từ ngày 3/2/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
I have used Deeplabcut GUI to train a model for poses of two rats, which includes three multi-animal-bodyparts and two unique-bodyparts. The model was tested in Deeplab GUI through a video and the result shows that all the 8 points could be dotted.
The main purpose of us is for real-time application, so we find Deeplabcut-Live for next step. We import the model through python code:
deeplabcut.export_model(config_path, shuffle=1, make_tar=False)
Then a new folder named exported-models was created, which included a configuration file pose_cfg.yaml and other model files. Finally, I used deeplabcut-live to process a test video in real time, code:
import cv2
from dlclive import DLCLive, Processor
import time
model_path = r"C:\Users\XHB\Desktop\Multi_Rat-HB-2025-07-31\exported-models\DLC_Multi_Rat_resnet_50_iteration-0_shuffle-1"
dlc_proc = Processor()
dlc_live = DLCLive(model_path, processor=dlc_proc)
cap = cv2.VideoCapture("2rat2.avi")
ret, frame = cap.read()
dlc_live.init_inference(frame)
while True:
if not ret:
break
pose = dlc_live.get_pose(frame)
time_end = time.time()
for x, y, p in pose:
if p > 0.5:
cv2.circle(frame, (int(x), int(y)), 5, (0, 255, 0), -1)
cv2.imshow("DLC Live", frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
The result shows that only 5 points could be dotted, including the 3 multi-animal-bodyparts of the first rat and the 2 unique-bodyparts, while the other 3 multi-animal-bodyparts of the second rat were neglected.
Thus, I wanna ask for help, how could I recognize all the 8 parts of the 2 rats.
result in Deeplabcut GUI:
result in Deeplabcut-Live:
configuration file in Deeplabcut GUI:
config.zip
configuration file in Deeplabcut GUI:
pose_cfg.zip
- Ngôn ngữ chính
- Python
- Star
- 240
- Fork
- 57
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DeepLabCut/DeepLabCut-live
-
bug DLC 3.0 🔥
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
DeepLabCut/DeepLabCut-live#137 · 1 bình luận ·
-
[meta] docs Đang mởdocumentation
DeepLabCut/DeepLabCut-live#78 · 2 bình luận · 1 reaction · 2 người được giao ·
Tất cả issue của DeepLabCut/DeepLabCut-live
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stephrobert/dsoxlab#238 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
sublimehq/package_control#1780 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nwg-piotr/nwg-displays#145 ·