Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,8 @@ from video_processing import process_video
|
|
| 4 |
from PIL import Image
|
| 5 |
import matplotlib
|
| 6 |
|
| 7 |
-
matplotlib.rcParams['figure.dpi'] =
|
| 8 |
-
matplotlib.rcParams['savefig.dpi'] =
|
| 9 |
|
| 10 |
def process_and_show_completion(video_input_path, anomaly_threshold_input, fps, progress=gr.Progress()):
|
| 11 |
try:
|
|
@@ -21,7 +21,7 @@ def process_and_show_completion(video_input_path, anomaly_threshold_input, fps,
|
|
| 21 |
mse_plot_embeddings, mse_histogram_embeddings, \
|
| 22 |
mse_plot_posture, mse_histogram_posture, \
|
| 23 |
mse_heatmap_embeddings, mse_heatmap_posture, \
|
| 24 |
-
face_samples_frequent, \
|
| 25 |
anomaly_faces_embeddings, anomaly_frames_posture_images, \
|
| 26 |
aligned_faces_folder, frames_folder = results
|
| 27 |
|
|
|
|
| 4 |
from PIL import Image
|
| 5 |
import matplotlib
|
| 6 |
|
| 7 |
+
matplotlib.rcParams['figure.dpi'] = 300
|
| 8 |
+
matplotlib.rcParams['savefig.dpi'] = 300
|
| 9 |
|
| 10 |
def process_and_show_completion(video_input_path, anomaly_threshold_input, fps, progress=gr.Progress()):
|
| 11 |
try:
|
|
|
|
| 21 |
mse_plot_embeddings, mse_histogram_embeddings, \
|
| 22 |
mse_plot_posture, mse_histogram_posture, \
|
| 23 |
mse_heatmap_embeddings, mse_heatmap_posture, \
|
| 24 |
+
face_samples_frequent, face_samples_other, \
|
| 25 |
anomaly_faces_embeddings, anomaly_frames_posture_images, \
|
| 26 |
aligned_faces_folder, frames_folder = results
|
| 27 |
|