You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code fails when the batch size is 1 because the created subfigs doesn't have a flat property if there's only one row and one column. Not sure whether this should be fixed upstream in matplotlib...
Matplotlib version 3.7.1, rastervision version 0.21.2
importmatplotlib.pyplotaspltfig=plt.figure()
subfigs=fig.subfigures(nrows=2, ncols=1, hspace=0)
subfigs.flat#> <numpy.flatiter object at 0x5575c63e68f0>subfigs=fig.subfigures(nrows=1, ncols=1, hspace=0)
subfigs.flat#> Traceback (most recent call last):#> File "<string>", line 1, in <module>#> AttributeError: 'SubFigure' object has no attribute 'flat'
Created at 2023-10-11 17:12:31 CDT by reprexlite v0.5.0
The text was updated successfully, but these errors were encountered:
raster-vision/rastervision_pytorch_learner/rastervision/pytorch_learner/dataset/visualizer/visualizer.py
Lines 122 to 127 in e4e10ad
This code fails when the batch size is 1 because the created
subfigs
doesn't have aflat
property if there's only one row and one column. Not sure whether this should be fixed upstream inmatplotlib
...Matplotlib version 3.7.1, rastervision version 0.21.2
Created at 2023-10-11 17:12:31 CDT by reprexlite v0.5.0
The text was updated successfully, but these errors were encountered: