Download display_images.py from jkushwaha/code: direct link, hf CLI and curl.
- Browser
- Download file 291 Bytes
-
https://huggingface.co/jkushwaha/code/resolve/main/display_images.py
- Command line
-
hf download hf://jkushwaha/code/display_images.py
-
curl -L -o display_images.py https://huggingface.co/jkushwaha/code/resolve/main/display_images.py
291 Bytes
| import matplotlib.pyplot as plt | |
| plt.figure(figsize=(10, 5)) | |
| plt.subplot(1, 2, 1) | |
| plt.imshow(black_white_image, cmap='gray') | |
| plt.title('Original Image') | |
| plt.axis('off') | |
| plt.subplot(1, 2, 2) | |
| plt.imshow(tmp, cmap='gray') | |
| plt.title('Output Image with Black Patches') | |
| plt.axis('off') | |
| plt.show() |