arve0 / microscopestitching

Automatic merge/stitching of regular spaced images
MIT License
5 stars 2 forks source link

ValueError: too many values to unpack (expected 2) #2

Open vivekstorm opened 5 years ago

vivekstorm commented 5 years ago

Getting ValueError when trying to run stitch method.

Code: `import cv2 import numpy as np from microscopestitching import * from skimage.io import imsave, imshow import glob

images=[('00.tif',0,0),('01.tif',0,1)] merged=stitch(images) cv2.imshow('merged',merged) cv2.waitKey(0) cv2.destroyAllWindows()`

`ValueError Traceback (most recent call last)

in () ----> 1 merged = stitch(images) C:\ProgramData\Anaconda3\lib\site-packages\microscopestitching\stitching.py in stitch(images) 57 if type(images) != ImageCollection: 58 images = ImageCollection(images) ---> 59 calc_translations_parallel(images) 60 _translation_warn(images) 61 C:\ProgramData\Anaconda3\lib\site-packages\microscopestitching\stitching.py in calc_translations_parallel(images) 29 """ 30 w = Parallel(n_jobs=_CPUS) ---> 31 res = w(delayed(images.translation)(img) for img in images) 32 33 # save results to Image object, as Parallel is spawning another process C:\ProgramData\Anaconda3\lib\site-packages\joblib\parallel.py in __call__(self, iterable) 994 995 with self._backend.retrieval_context(): --> 996 self.retrieve() 997 # Make sure that we get a last message telling us we are done 998 elapsed_time = time.time() - self._start_time C:\ProgramData\Anaconda3\lib\site-packages\joblib\parallel.py in retrieve(self) 897 try: 898 if getattr(self._backend, 'supports_timeout', False): --> 899 self._output.extend(job.get(timeout=self.timeout)) 900 else: 901 self._output.extend(job.get()) C:\ProgramData\Anaconda3\lib\site-packages\joblib\_parallel_backends.py in wrap_future_result(future, timeout) 515 AsyncResults.get from multiprocessing.""" 516 try: --> 517 return future.result(timeout=timeout) 518 except LokyTimeoutError: 519 raise TimeoutError() C:\ProgramData\Anaconda3\lib\concurrent\futures\_base.py in result(self, timeout) 430 raise CancelledError() 431 elif self._state == FINISHED: --> 432 return self.__get_result() 433 else: 434 raise TimeoutError() C:\ProgramData\Anaconda3\lib\concurrent\futures\_base.py in __get_result(self) 382 def __get_result(self): 383 if self._exception: --> 384 raise self._exception 385 else: 386 return self._result ValueError: too many values to unpack (expected 2)`
fanweiya commented 3 years ago

I hava same problem

tusharvora commented 3 years ago

same issue

David1one commented 3 years ago

Me too.