Trainable Weka Segmentation / Error when loading classifiers

weka
Tags: #<Tag:0x00007fb883aad2a8>

#1

Hello everyone,
recently I started using the Trainable Weka Segmentation and created several classifiers.
But when I wanted to load the classifiers to apply them to other images, an error occured.
The first notification said ‘Error while loading train header’, the second ‘Error when loading Weka classifier from file’. Additionaly the “Console”-Window opened.
I’m using ImageJ for Windows, does anyone know what the problem could be?
I would be really, really thankful!
Charlotte


#2

Dear @Charlie,

is it possible that your classifier files were corrupted somehow, for instance, when copying to a network share? Does even one of the classifiers work or does loading fail for all of them?

Does it show something in that window? If so, could you also copy and paste that content in here?

Best,
Stefan


#3

I got the same problem. Actually, you should wait until the saving classifier process finish before you load to another image(s). Even though the file is several MB big, it takes minutes.

P.S. when it hasn’t finish, u will see 2 .model files with same name


#4

Dear @ZeliangSu and @Charlie,

I have just made a new release that prevents the GUI from doing anything until the classifier is completely written to file. Please, update your plugin installation and give it a try.

Thanks a lot for reporting!