mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 12:10:09 +01:00
fix matplotlib.cm compatible issue
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
import numpy as np
|
||||
import torch
|
||||
import torchvision.transforms as transforms
|
||||
from matplotlib.cm import get_cmap
|
||||
# from matplotlib.cm import get_cmap
|
||||
# compatible with matplotlib 3.9.0
|
||||
from matplotlib.pyplot import get_cmap
|
||||
|
||||
from modelscope.models.cv.video_depth_estimation.utils.image import (
|
||||
flip_lr, gradient_x, gradient_y, interpolate_image, load_image)
|
||||
|
||||
Reference in New Issue
Block a user