SCIInstitute / ShapeWorks

ShapeWorks
http://sciinstitute.github.io/ShapeWorks/
Other
99 stars 31 forks source link

DeepSSM / Studio : When percent variability is set to higher than 100%, an exception is thrown #2234

Closed akenmorris closed 2 months ago

akenmorris commented 2 months ago

1) Should probably limit value to 100% 2) Shouldn't throw exception, or if it does, it should have a meaningful error message rather than:

Error: Exception Caught: IndexError: index 0 is out of bounds for axis 0 with size 0 At: /Users/amorris/sci/shapeworks/code/Python/DataAugmentationUtilsPackage/DataAugmentationUtils/Embedder.py(46): run_PCA /Users/amorris/sci/shapeworks/code/Python/DataAugmentationUtilsPackage/DataAugmentationUtils/Embedder.py(25): init /Users/amorris/sci/shapeworks/code/Python/DataAugmentationUtilsPackage/DataAugmentationUtils/DataAugmentation.py(37): point_based_aug /Users/amorris/sci/shapeworks/code/Python/DataAugmentationUtilsPackage/DataAugmentationUtils/init.py(22): runDataAugmentation /Users/amorris/sci/shapeworks/code/Python/DeepSSMUtilsPackage/DeepSSMUtils/run_utils.py(273): run_data_augmentation