From 9080382b65abccc72fa0e285bedf38fac2871f72 Mon Sep 17 00:00:00 2001 From: mark Date: Tue, 17 Dec 2019 16:11:47 +0800 Subject: [PATCH] Update gene_npz.py prevent the situation that no person appears in the last frame --- joints_detectors/Alphapose/gene_npz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/joints_detectors/Alphapose/gene_npz.py b/joints_detectors/Alphapose/gene_npz.py index 57e9798..71d05e8 100644 --- a/joints_detectors/Alphapose/gene_npz.py +++ b/joints_detectors/Alphapose/gene_npz.py @@ -55,7 +55,7 @@ def generate_kpts(video_file): no_person.clear() for n in no_person: - kpts[n] = kpts[-1] + kpts[n] = kpts[-1] if kpts[-1] else kpts[n-1] # ============ Changing End ++++++++++