I am trying to run a python function on multiple cores on my CPU but I keep getting this error that says 'need more than 1 value to unpack'.
I am passing two arguments to map function the first argument is my function which I want to run on multiple cores and the second argument is a list of tuples which I want to pass as an argument to my function.
something like this
def func(list_obj):
temp = list_obj[0]
img = list_obj[1]
arg = list()
arg.append((img1,img2))
pool = multiprocessing.Pool(processes = 2)
results = pool.map(func,arg)
print (results)
Can someone please help me why am I getting this error and what possible way is there to solve this error