When I try to execute the command python -u datasets/ParseKINSInstance.py I receive the following error
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, *kwds))
File "/usr/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(args))
File "datasets/ParseKINSInstance.py", line 52, in plot_imgid
height, width, = img.shape
AttributeError: 'NoneType' object has no attribute 'shape'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "datasets/ParseKINSInstance.py", line 86, in
results = pool.map(plot_img_id, allImgs)
File "/usr/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/usr/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
AttributeError: 'NoneType' object has no attribute 'shape'
Is the script correct? I don't understand this process very well cause the variable that enters in the function plot_img_id is not logical.
allImgs = list(anns_dict.keys())
plot_img_id(allImgs[0])
pool = multiprocessing.Pool(processes=32)
results = pool.map(plot_img_id, allImgs)
pool.close()
Hi,
When I try to execute the command python -u datasets/ParseKINSInstance.py I receive the following error
multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker result = (True, func(*args, *kwds)) File "/usr/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar return list(map(args)) File "datasets/ParseKINSInstance.py", line 52, in plot_imgid height, width, = img.shape AttributeError: 'NoneType' object has no attribute 'shape' """
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "datasets/ParseKINSInstance.py", line 86, in
results = pool.map(plot_img_id, allImgs)
File "/usr/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/usr/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
AttributeError: 'NoneType' object has no attribute 'shape'
Is the script correct? I don't understand this process very well cause the variable that enters in the function plot_img_id is not logical.
allImgs = list(anns_dict.keys())
plot_img_id(allImgs[0])
I hope you can help me
Thank you