【发布时间】:2020-06-04 15:58:53
【问题描述】:
我正在尝试从此存储库中运行以下代码。
https://github.com/UjjwalSaxena/Automold--Road-Augmentation-Library
hp.visualize(images, column=3, fig_size=(20,10))
它给了我以下错误。我该如何解决这个问题?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "Helpers.py", line 51, in visualize
f,axes= plt.subplots(row, column, figsize=fig_size)
File "/home/.local/lib/python2.7/site-packages/matplotlib/pyplot.py", line 1187, in subplots
gridspec_kw=gridspec_kw)
File "/home/.local/lib/python2.7/site-packages/matplotlib/figure.py", line 1362, in subplots
axarr = np.empty((nrows, ncols), dtype=object)
TypeError: 'float' object cannot be interpreted as an index
【问题讨论】:
-
不,没有帮助。
标签: python numpy floating-point