Skip to content

Training of SpatialEmbedding #26

@andreapereza2

Description

@andreapereza2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions