Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Deeplabcut Live for Multi-Animal

Aperta
#130 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@C-Achard ci sta già lavorando.

Dal 3/2/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug tensorflow

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:
Image

result in Deeplabcut-Live:
Image

configuration file in Deeplabcut GUI:
config.zip

configuration file in Deeplabcut GUI:
pose_cfg.zip

Lingua principale
Python
Stelle
240
Fork
57
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DeepLabCut/DeepLabCut-live

Tutte le issue di DeepLabCut/DeepLabCut-live

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.