Hi, i meet this warning when i use torchshow to save masks in 'for' loop. Is there anyway to solve this problem?
envs/py38/lib/python3.8/site-packages/torchshow/visualization.py:108: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (matplotlib.pyplot.figure) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam figure.max_open_warning).
fig, axes = plt.subplots(nrows=nrows, ncols=ncols, squeeze=False)
Hi, i meet this warning when i use torchshow to save masks in 'for' loop. Is there anyway to solve this problem?
envs/py38/lib/python3.8/site-packages/torchshow/visualization.py:108: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (
matplotlib.pyplot.figure
) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParamfigure.max_open_warning
). fig, axes = plt.subplots(nrows=nrows, ncols=ncols, squeeze=False)