Skip to content

Commit 7c31910

Browse files
committed
Merge branch 'dev-simba' into dev
# Conflicts: # DeepLabStream.py # utils/poser.py
2 parents bd47f18 + 6c55285 commit 7c31910

File tree

10 files changed

+1317
-13
lines changed

10 files changed

+1317
-13
lines changed

DeepLabStream.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from utils.configloader import RESOLUTION, FRAMERATE, OUT_DIR, MODEL_NAME, MULTI_CAM, STACK_FRAMES, \
2121
ANIMALS_NUMBER, STREAMS, STREAMING_SOURCE
2222
from utils.poser import load_deeplabcut, get_pose, find_local_peaks_new, calculate_skeletons,\
23-
get_ma_pose, calculate_ma_skeletons, calculate_skeletons_dlc_live
23+
get_ma_pose, calculate_ma_skeletons, calculate_skeletons_dlc_live, transform_2skeleton
2424
from utils.plotter import plot_bodyparts, plot_metadata_frame
2525

2626

@@ -284,7 +284,9 @@ def get_pose_mp(input_q, output_q):
284284
index, frame = input_q.get()
285285
if MODEL_ORIGIN == 'DLC':
286286
scmap, locref, pose = get_pose(frame, config, sess, inputs, outputs)
287-
peaks = find_local_peaks_new(scmap, locref, ANIMALS_NUMBER, config)
287+
# TODO: REmove alterations to original
288+
#peaks = find_local_peaks_new(scmap, locref, ANIMALS_NUMBER, config)
289+
peaks = pose
288290
if MODEL_ORIGIN == 'MADLC':
289291
peaks = get_ma_pose(frame, config, sess, inputs, outputs)
290292

@@ -407,7 +409,9 @@ def get_analysed_frames(self) -> tuple:
407409

408410
# Getting the analysed data
409411
analysed_index, peaks = self._multiprocessing[camera]['output'].get()
410-
skeletons = calculate_skeletons(peaks, ANIMALS_NUMBER)
412+
#TODO: REMOVE IF USELESS
413+
skeletons = [transform_2skeleton(peaks)]
414+
#skeletons = calculate_skeletons(peaks, ANIMALS_NUMBER)
411415
print('', end='\r', flush=True) # this is the line you should not remove
412416
analysed_frame, depth_map, input_time = self.get_stored_frames(camera)
413417
analysis_time = time.time() - input_time

0 commit comments

Comments
 (0)