thorough-pytorch icon indicating copy to clipboard operation
thorough-pytorch copied to clipboard

Issue on page /第六章/6.5 数据增强-imgaug.html

Open sanbuphy opened this issue 1 year ago • 0 comments

imgaug 年久失修,若imshow需要修改源码:

python3.10/site-packages/imgaug/imgaug.py

        fig, ax = plt.subplots(figsize=(w, h), dpi=dpi)
        fig.canvas.set_window_title("imgaug.imshow(%s)" % (image.shape,))
        # cmap=gray is automatically only activate for grayscale images
        ax.imshow(image, cmap="gray")

其中需要把 fig.canvas.set_window_title 修改为 fig.canvas.manager.set_window_title

sanbuphy avatar Jan 02 '24 08:01 sanbuphy