问题一:图片大小问题
报错:
F:\Anaconda\envs\paddle\lib\site-packages\paddle\fluid\reader.py:811: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
arr = np.array(item)
2020-12-15 16:30:02,138-WARNING: DygraphDataLoader reader thread raised an exception.
Traceback (most recent call last):
File "F:/Programs/3DOB/D4LCNpaddle/try.py", line 95, in <module>
main()
File "F:/Programs/3DOB/D4LCNpaddle/try.py", line 90, in main
for idx, (data, label) in enumerate(dataloader):
File "F:\Anaconda\envs\paddle\lib\site-packages\paddle\fluid\reader.py", line 804, in __next__
return self._reader.read_next_var_list()
paddle.fluid.core_avx.EnforceNotMet:
--------------------------------------------
C++ Call Stacks (More useful to developers):
--------------------------------------------
Windows not support stack backtrace yet.
----------------------
Error Message Summary:
----------------------
Error: Blocking queue is killed because the data reader raises an exception
[Hint: Expected killed_ != true, but received killed_:1 == true:1.] at (D:\1.8.0cpu\paddle\paddle/fluid/operators/reader/blocking_queue.h:141)
解决:
利用transformer将图片size调整到统一size
问题二:paddle无法读取easydict
问题:paddlepaddle自带的dataloader无法读取字典类型(dict)
解决:采用迭代器,yeild方法写自己的dataloader