Spaces:
Running
Running
Update landmarkdiff/experiment_tracker.py to v0.3.2
Browse files
landmarkdiff/experiment_tracker.py
CHANGED
|
@@ -192,10 +192,7 @@ class ExperimentTracker:
|
|
| 192 |
fid = f"{exp.get('fid', '')}" if "fid" in exp else "--"
|
| 193 |
ssim = f"{exp.get('ssim', ''):.4f}" if "ssim" in exp else "--"
|
| 194 |
lpips = f"{exp.get('lpips', ''):.4f}" if "lpips" in exp else "--"
|
| 195 |
-
print(
|
| 196 |
-
f"{exp['id']:<10} {exp['name']:<20}"
|
| 197 |
-
f" {exp['status']:<12} {fid:>6} {ssim:>6} {lpips:>6}"
|
| 198 |
-
)
|
| 199 |
|
| 200 |
def get_best(self, metric: str = "fid", lower_is_better: bool = True) -> str | None:
|
| 201 |
"""Get the experiment ID with the best value for a given metric."""
|
|
|
|
| 192 |
fid = f"{exp.get('fid', '')}" if "fid" in exp else "--"
|
| 193 |
ssim = f"{exp.get('ssim', ''):.4f}" if "ssim" in exp else "--"
|
| 194 |
lpips = f"{exp.get('lpips', ''):.4f}" if "lpips" in exp else "--"
|
| 195 |
+
print(f"{exp['id']:<10} {exp['name']:<20} {exp['status']:<12} {fid:>6} {ssim:>6} {lpips:>6}")
|
|
|
|
|
|
|
|
|
|
| 196 |
|
| 197 |
def get_best(self, metric: str = "fid", lower_is_better: bool = True) -> str | None:
|
| 198 |
"""Get the experiment ID with the best value for a given metric."""
|