flucoma / flucoma-sc

Fluid Corpus Manipulation plugins for Supercollider
BSD 3-Clause "New" or "Revised" License
70 stars 16 forks source link

Crash when reading classifier model `FluidMLPClassifier` from JSON file #159

Closed axambo closed 1 year ago

axambo commented 1 year ago

Hello!

There's a crash when reading the classifier model FluidMLPClassifier from a JSON file. The SC post window returns:

Server 'localhost' exited with exit code 0.
server 'localhost' disconnected shared memory interface

To replicate the error, you can follow the FluidMLPClassifier Help file and add this code (you will need to change the paths):

~mlp.write("/Users/anna/Desktop/test/testMLP.json")

~mlp2 = FluidMLPClassifier(s,[3],activation:FluidMLPClassifier.sigmoid,maxIter:20,learnRate:0.01,batchSize:1,validation:0.1);

~mlp2.read("/Users/anna/Desktop/test/testMLP.json")
tremblap commented 1 year ago

hmmm here it doesn't crash. Which version have you got? Can you try the 1.0.6 release candidate? I am testing on :

Fluid Corpus Manipulation Toolkit: version 1.0.6+sha.8403b25.core.sha.4a7d9daa

I have the previous public version (1.0.5) which I will try right away and hope to reproduce.

tremblap commented 1 year ago

ok I was able to reproduce in the previous public version (1.0.5+sha.5bb4245.core.sha.001df55a)

axambo commented 1 year ago

I tried 1.0.6 (pre-release) and it works, thank you very much!

tremblap commented 1 year ago

fixed in forthcoming 1.0.6

axambo commented 1 year ago

Super, thanks! already using it :)