Training of SpatialEmbedding
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
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