Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training of SpatialEmbedding #26

Open
andreapereza2 opened this issue Nov 1, 2021 · 0 comments
Open

Training of SpatialEmbedding #26

andreapereza2 opened this issue Nov 1, 2021 · 0 comments

Comments

@andreapereza2
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant