Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sanbuphy opened this issue Jan 2, 2024 · 0 comments
Open

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

sanbuphy opened this issue Jan 2, 2024 · 0 comments

Comments

@sanbuphy
Copy link
Member

sanbuphy commented Jan 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant