CLoDSA icon indicating copy to clipboard operation
CLoDSA copied to clipboard

augmentor.applyAugmentation() error

Open danielkovarik opened this issue 5 years ago • 7 comments

Hi CLoDSA team,

I am trying to make work your colab notebook on my data and I am not able to make it work through augmentor.applyAugmentation()

`--------------------------------------------------------------------------- _RemoteTraceback Traceback (most recent call last) _RemoteTraceback: """ Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/joblib/externals/loky/process_executor.py", line 418, in _process_worker r = call_item() File "/usr/local/lib/python3.6/dist-packages/joblib/externals/loky/process_executor.py", line 272, in call return self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.6/dist-packages/joblib/_parallel_backends.py", line 567, in call return self.func(*args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/joblib/parallel.py", line 225, in call for func, args, kwargs in self.items] File "/usr/local/lib/python3.6/dist-packages/joblib/parallel.py", line 225, in for func, args, kwargs in self.items] File "/usr/local/lib/python3.6/dist-packages/clodsa/augmentors/cocoLinearInstanceSegmentationAugmentor.py", line 46, in readAndGenerateInstanceSegmentation segmentation = [[x[0][0], x[0][1]] for x in cnts[0]] IndexError: list index out of range """

The above exception was the direct cause of the following exception:

IndexError Traceback (most recent call last) in () ----> 1 augmentor.applyAugmentation()

5 frames /usr/lib/python3.6/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

IndexError: list index out of range`

Can you please direct me where is the problem?

danielkovarik avatar Sep 03 '19 12:09 danielkovarik

Hi,

which notebook are you using? Is it possible for you to send a extract of your dataset to try to reproduce the problem?

joheras avatar Sep 03 '19 13:09 joheras

I think that the problem was related to the issue raised in #7 I have updated a corrected version of Clodsa, you can install it using pip install clodsa==1.2.34

Could you check if this solves your problem?

joheras avatar Sep 03 '19 14:09 joheras

Hi,

thanks a lot for your quick response. The update really fixed the applyAugmentation() error. But unfortunately, the augmented images have annotations on the wrong place. Look at the image attached. It is the visualization from the colab notebook. (When I visualize the original dataset, annotations are placed correctly.)

clodsa

I use this notebook: https://colab.research.google.com/github/joheras/CLoDSA/blob/master/notebooks/CLODSA_Instance_Segmentation.ipynb

If you want to look at the original dataset I can send it to you in direct message if it it possible.

Thank you for your work!

Daniel

danielkovarik avatar Sep 03 '19 20:09 danielkovarik

Hi,

Could you send me the dataset (or part of it) to [email protected].

I will check the issue asap. Best

joheras avatar Sep 04 '19 06:09 joheras

I have fixed the problem. Update the version of clodsa and check that it works properly now. Thanks. Jónathan

joheras avatar Sep 04 '19 14:09 joheras

Hi,

Is there any further progress on this bug, as I am still facing, thou I updated to the latest version.

engmubarak48 avatar Sep 10 '19 07:09 engmubarak48

Hi, the problem faced by danielkovarik was solved. I am still working on the bug that you reported on the other issue.

joheras avatar Sep 10 '19 07:09 joheras