diff --git a/metric_depth/run.py b/metric_depth/run.py index 63d46f54..edb928cc 100644 --- a/metric_depth/run.py +++ b/metric_depth/run.py @@ -50,7 +50,7 @@ os.makedirs(args.outdir, exist_ok=True) - cmap = matplotlib.colormaps.get_cmap('Spectral') + cmap = matplotlib.colormaps['Spectral'] for k, filename in enumerate(filenames): print(f'Progress {k+1}/{len(filenames)}: {filename}') diff --git a/run.py b/run.py index 14810ff3..8b66d4a9 100644 --- a/run.py +++ b/run.py @@ -47,7 +47,7 @@ os.makedirs(args.outdir, exist_ok=True) - cmap = matplotlib.colormaps.get_cmap('Spectral_r') + cmap = matplotlib.colormaps['Spectral'] for k, filename in enumerate(filenames): print(f'Progress {k+1}/{len(filenames)}: {filename}') diff --git a/run_video.py b/run_video.py index cc3c5b6a..9a5ec192 100644 --- a/run_video.py +++ b/run_video.py @@ -48,7 +48,7 @@ os.makedirs(args.outdir, exist_ok=True) margin_width = 50 - cmap = matplotlib.colormaps.get_cmap('Spectral_r') + cmap = matplotlib.colormaps['Spectral'] for k, filename in enumerate(filenames): print(f'Progress {k+1}/{len(filenames)}: {filename}')