You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
It would be helpful to set expectations on the runtimes of this example, those with preinstalled images are much longer than I would have guessed (compared to small random generated and our other DQM examples),
Also, running one preinstalled image, within recommended parameter limits, fails (I assume this was tested in the past so might need also an IDE issue).
Here's what I got on a few executions in Leap IDE:
Random generated:
python image_segmentation.py for dimensions set to 2 and segments set to 2 ran quickly (under a minute)
python image_segmentation.py for dimensions set to 3 and segments set to 2 ran quickly (under a minute)
python image_segmentation.py for dimensions set to 6 and segments set to 2 and to 4 ran quickly (under a minute)
Preinstalled images:
python image_segmentation.py test_2_segments.png for 2 segments took ~15 minutes
python image_segmentation.py test_4_segments.png for 4 segments took ~15 minutes
python image_segmentation.py test_image.jpeg for 5 segments aborted after about 20 minutes:
Leap IDE /workspace/image-segmentation $ python image_segmentation.py test_image.jpeg
Reading in your image...
Enter number of segments > 5
Preparing DQM object...
Killed
python image_segmentation.py test_image.jpeg for 2 segments aborted after about 20 minutes:
Leap IDE /workspace/image-segmentation $ python image_segmentation.py test_image.jpeg
Reading in your image...
Enter number of segments > 2
Preparing DQM object...
Killed
It would be helpful to set expectations on the runtimes of this example, those with preinstalled images are much longer than I would have guessed (compared to small random generated and our other DQM examples),
Also, running one preinstalled image, within recommended parameter limits, fails (I assume this was tested in the past so might need also an IDE issue).
Here's what I got on a few executions in Leap IDE:
Random generated:
python image_segmentation.pyfor dimensions set to2and segments set to2ran quickly (under a minute)python image_segmentation.pyfor dimensions set to3and segments set to2ran quickly (under a minute)python image_segmentation.pyfor dimensions set to6and segments set to2and to4ran quickly (under a minute)Preinstalled images:
python image_segmentation.py test_2_segments.pngfor 2 segments took ~15 minutespython image_segmentation.py test_4_segments.pngfor 4 segments took ~15 minutespython image_segmentation.py test_image.jpegfor 5 segments aborted after about 20 minutes:python image_segmentation.py test_image.jpegfor 2 segments aborted after about 20 minutes: