NetVLAD 问题总结

NetVLAD 问题总结

  • 一、NetVLAD
    • 问题一:


一、NetVLAD

问题一:

File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "/home/nh/anaconda3/envs/netvlad/lib/python3.8/site-packages/h5py/_hl/dataset.py", line 841, in getitem
selection = sel.select(self.shape, args, dataset=self)
File "/home/nh/anaconda3/envs/netvlad/lib/python3.8/site-packages/h5py/_hl/selections.py", line 82, in select
return selector.make_selection(args)
File "h5py/_selector.pyx", line 282, in h5py._selector.Selector.make_selection
File "h5py/_selector.pyx", line 197, in h5py._selector.Selector.apply_args
TypeError: Indexing arrays must have integer dtypes

出现这个问题原因是:输出为浮点数。

解决:

将环境中的"h5py"的版本更换一下。
由原来的版本,更改为“h5py 2.10.0版本”

你可能感兴趣的:(python,ubuntu,linux)