no mmdet
Browse files- Dockerfile +1 -1
- main_noweb.py +8 -5
Dockerfile
CHANGED
@@ -17,7 +17,7 @@ RUN pip3 install torchvision --extra-index-url https://download.pytorch.org/whl
|
|
17 |
RUN pip3 install --no-cache-dir --upgrade -U openmim
|
18 |
RUN mim install --no-cache-dir --upgrade mmengine
|
19 |
RUN mim install "mmcv>=2.0.1"
|
20 |
-
RUN mim install "mmdet>=3.1.0"
|
21 |
|
22 |
RUN git clone https://github.com/open-mmlab/mmpose.git
|
23 |
|
|
|
17 |
RUN pip3 install --no-cache-dir --upgrade -U openmim
|
18 |
RUN mim install --no-cache-dir --upgrade mmengine
|
19 |
RUN mim install "mmcv>=2.0.1"
|
20 |
+
# RUN mim install "mmdet>=3.1.0"
|
21 |
|
22 |
RUN git clone https://github.com/open-mmlab/mmpose.git
|
23 |
|
main_noweb.py
CHANGED
@@ -144,7 +144,7 @@ def pose2d(video, kpt_threshold):
|
|
144 |
|
145 |
result_generator = human(video,
|
146 |
vis_out_dir = add_dir,
|
147 |
-
return_vis=True,
|
148 |
radius = 5,
|
149 |
thickness=4,
|
150 |
rebase_keypoint_height=True,
|
@@ -157,6 +157,9 @@ def pose2d(video, kpt_threshold):
|
|
157 |
|
158 |
out_file = glob.glob(os.path.join(add_dir, "*.mp4")) #+ glob.glob(os.path.join(vis_out_dir, "*.webm"))
|
159 |
kpoints = glob.glob(os.path.join(add_dir, "*.json"))
|
|
|
|
|
|
|
160 |
|
161 |
return "".join(out_file), "".join(kpoints)
|
162 |
|
@@ -197,10 +200,10 @@ with block:
|
|
197 |
# Insert slider with kpt_thr
|
198 |
file_kpthr = gr.Slider(0, 1, value=0.3, label='Keypoint threshold')
|
199 |
with gr.Row():
|
200 |
-
submit_pose_file = gr.Button("Make 2d pose estimation", variant="primary"
|
201 |
-
submit_pose3d_file = gr.Button("Make 3d pose estimation", variant="primary"
|
202 |
-
submit_hand_file = gr.Button("Make 2d hand estimation", variant="primary"
|
203 |
-
submit_detect_file = gr.Button("Detect and track objects", variant="primary"
|
204 |
|
205 |
with gr.Row():
|
206 |
video_output1 = gr.PlayableVideo(height=512, label = "Estimate human 2d poses", show_label=True)
|
|
|
144 |
|
145 |
result_generator = human(video,
|
146 |
vis_out_dir = add_dir,
|
147 |
+
#return_vis=True,
|
148 |
radius = 5,
|
149 |
thickness=4,
|
150 |
rebase_keypoint_height=True,
|
|
|
157 |
|
158 |
out_file = glob.glob(os.path.join(add_dir, "*.mp4")) #+ glob.glob(os.path.join(vis_out_dir, "*.webm"))
|
159 |
kpoints = glob.glob(os.path.join(add_dir, "*.json"))
|
160 |
+
print(os.listdir(glob.glob(os.path.join(add_dir, "*.mp4"))))
|
161 |
+
print(glob.glob(os.path.join(add_dir, "*.json")))
|
162 |
+
print(os.listdir(add_dir))
|
163 |
|
164 |
return "".join(out_file), "".join(kpoints)
|
165 |
|
|
|
200 |
# Insert slider with kpt_thr
|
201 |
file_kpthr = gr.Slider(0, 1, value=0.3, label='Keypoint threshold')
|
202 |
with gr.Row():
|
203 |
+
submit_pose_file = gr.Button("Make 2d pose estimation", variant="primary")
|
204 |
+
submit_pose3d_file = gr.Button("Make 3d pose estimation", variant="primary")
|
205 |
+
submit_hand_file = gr.Button("Make 2d hand estimation", variant="primary")
|
206 |
+
submit_detect_file = gr.Button("Detect and track objects", variant="primary")
|
207 |
|
208 |
with gr.Row():
|
209 |
video_output1 = gr.PlayableVideo(height=512, label = "Estimate human 2d poses", show_label=True)
|