Update visualization.py
Browse files- visualization.py +4 -2
visualization.py
CHANGED
@@ -310,9 +310,11 @@ def create_video_with_heatmap(video_path, df, mse_embeddings, mse_posture, mse_v
|
|
310 |
self.progress_callback = progress_callback
|
311 |
|
312 |
def debug(self, msg, *args, **kwargs):
|
313 |
-
if self.progress_callback:
|
314 |
-
|
|
|
315 |
|
|
|
316 |
progress_logger = ProgressBarLogger('progress_logger', progress)
|
317 |
|
318 |
# Write the final video
|
|
|
310 |
self.progress_callback = progress_callback
|
311 |
|
312 |
def debug(self, msg, *args, **kwargs):
|
313 |
+
if 't=' in msg and self.progress_callback:
|
314 |
+
progress_percent = float(msg.split(' ')[-1].replace('%', '')) / 100
|
315 |
+
self.progress_callback(progress_percent, msg)
|
316 |
|
317 |
+
logging.basicConfig(level=logging.DEBUG)
|
318 |
progress_logger = ProgressBarLogger('progress_logger', progress)
|
319 |
|
320 |
# Write the final video
|