CRBS / cdeep3m

Please go to https://github.com/CRBS/cdeep3m2 for most recent version
Other
58 stars 10 forks source link

EnsemblePredictions.m fails when called by runprediction.sh if there is only 1 model #49

Closed coleslaw481 closed 5 years ago

coleslaw481 commented 5 years ago

if only 1 model is specified (ie --models 1fm) then EnsemblePredictions.m will fail when it is run cause it requires at least 2 models to merge the data. To fix this simply check the model count and if only 1 just make a symlink named ensembled and point it to the model directory where the images reside.

coleslaw481 commented 5 years ago

Added get_number_of_models() function to commonfunctions.sh and modified runprediction.sh to use this function to determine if EnsemblePredictions.m should be called. If only 1 model is found then a symlink named ensembled is created and pointed to the model directory.

coleslaw481 commented 5 years ago

Fixed in 1.5.0