PointTrack icon indicating copy to clipboard operation
PointTrack copied to clipboard

Training of SpatialEmbedding

Open andreapereza2 opened this issue 4 years ago • 0 comments

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_img_id 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()

I hope you can help me

Thank you

andreapereza2 avatar Nov 01 '21 16:11 andreapereza2