Spaces:
Build error
Build error
Download utils.py from innat/Global.Wheat.Detection.MaskRCNN: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/spaces/innat/Global.Wheat.Detection.MaskRCNN/resolve/main/utils.py
- Command line
-
hf download hf://spaces/innat/Global.Wheat.Detection.MaskRCNN/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/innat/Global.Wheat.Detection.MaskRCNN/resolve/main/utils.py
397 Bytes
| import matplotlib.pyplot as plt | |
| # from official repo | |
| def get_ax(rows=1, cols=1, size=7): | |
| """Return a Matplotlib Axes array to be used in | |
| all visualizations in the notebook. Provide a | |
| central point to control graph sizes. | |
| Adjust the size attribute to control how big to render images | |
| """ | |
| _, ax = plt.subplots(rows, cols, figsize=(size * cols, size * rows)) | |
| return ax | |