healthonrails / annolid

An annotation and instance segmentation-based multiple animal tracking and behavior analysis package.
Other
41 stars 9 forks source link

Crash when open quality control #48

Closed healthonrails closed 1 year ago

healthonrails commented 1 year ago

Right now we are trying to do quality control, but when I start the process on my MacBook Pro laptop, python quits unexpectedly, and I was wondering if you had any advice (I have attached several screenshots that may contain more information about the specific error). ValueError: Buffer has the wrong number of dimensions expected 2 got 1

jeremyforest commented 1 year ago

@healthonrails Will try out as soon as I can. Can't see the screenshots though is that normal ?

healthonrails commented 1 year ago

@healthonrails Will try out as soon as I can. Can't see the screenshots though is that normal ?

thumbnail_Screen Shot_2 AM

<img width="640" alt="thumbnail_Screen Shot AM" src="https://user-images.githubusercontent.com/1077233/202543392-4eb

thumbnail_Screen ShotAM thumbnail_Screen Shot 4AM thumbnail_Screen Shot 3 AM

6889f-1229-4b55-a75c-895d061de683.png">

healthonrails commented 1 year ago

The memory leak was caused by the simplification/cutil.pyx code. Switched to using the NumPy array for the input contours fixed the issue.