Spaces:
Paused
Paused
decrease eval frames sample size
Browse files- evaluate.py +2 -2
- main.py +1 -1
evaluate.py
CHANGED
|
@@ -131,7 +131,7 @@ def get_score(item, image_paths, video_path, metrics, train_steps=100, inference
|
|
| 131 |
gt_frames.append(img)
|
| 132 |
else:
|
| 133 |
gt_frames = extract_frames(video_path, fps)
|
| 134 |
-
gt_frames = gt_frames[:
|
| 135 |
for f in gt_frames:
|
| 136 |
f.thumbnail((512,512))
|
| 137 |
|
|
@@ -168,7 +168,7 @@ def get_score(item, image_paths, video_path, metrics, train_steps=100, inference
|
|
| 168 |
psnr2.append(float(compute_psnr(gt, base)))
|
| 169 |
lpips2.append(float(compute_lpips(gt, base)))
|
| 170 |
|
| 171 |
-
if c<
|
| 172 |
print(c)
|
| 173 |
fid.append(float(compute_fid(gt, result)))
|
| 174 |
fid2.append(float(compute_fid(gt, base)))
|
|
|
|
| 131 |
gt_frames.append(img)
|
| 132 |
else:
|
| 133 |
gt_frames = extract_frames(video_path, fps)
|
| 134 |
+
gt_frames = gt_frames[:200]
|
| 135 |
for f in gt_frames:
|
| 136 |
f.thumbnail((512,512))
|
| 137 |
|
|
|
|
| 168 |
psnr2.append(float(compute_psnr(gt, base)))
|
| 169 |
lpips2.append(float(compute_lpips(gt, base)))
|
| 170 |
|
| 171 |
+
if c<50:
|
| 172 |
print(c)
|
| 173 |
fid.append(float(compute_fid(gt, result)))
|
| 174 |
fid2.append(float(compute_fid(gt, base)))
|
main.py
CHANGED
|
@@ -85,7 +85,7 @@ debug = False
|
|
| 85 |
save_model = True
|
| 86 |
should_gen_vid = False
|
| 87 |
max_batch_size = 8
|
| 88 |
-
max_frame_count =
|
| 89 |
|
| 90 |
def save_temp_imgs(imgs):
|
| 91 |
os.makedirs('temp', exist_ok=True)
|
|
|
|
| 85 |
save_model = True
|
| 86 |
should_gen_vid = False
|
| 87 |
max_batch_size = 8
|
| 88 |
+
max_frame_count = 200
|
| 89 |
|
| 90 |
def save_temp_imgs(imgs):
|
| 91 |
os.makedirs('temp', exist_ok=True)
|