8 Times more CPU consumption on Aida-X Neural Models
-
@DabDab I haven't trained any model yet, but loading models is done like this:
- Open the Neural Sine synth example in the Snippet Browser. Delete the synth.
- Then replace the sine example with one of the models above (the models are in json format, just copy/paste).
- Then open the neural node in FX as Scriptnode, select the model then you're good to go.
When you replace the neural network, you might need to restart HISE after saving, sometimes it doesn't update.
-
Something else coming back to the performance difference. I vaguely remember saying that there were optimisations pre-compiled when it came to inferencing certain architecture sizes. Given that Aida for example has a pretty specific pipeline that people use on collab, maybe they optimised that specific number of Layers and Hidden Size?
-
@ccbl yes but none of that should cause an 8x performance boost (more like 20% or so). I just need to profile it and find out where it's spending its time.
-
@Christoph-Hart cool. Well like I said, if you want any kind of models for testing, let me know. I can do either NAM-wavenet or LSTM, of any size.
-
@Christoph-Hart One thing, in the Neural Example in the docs it says this "It requires HISE to be built with the RTNeural framework to enable real time inferencing..."
I don't remember doing this explicitly when I built HISE, I just built it the standard way and it all works. I'm assuming this is just no longer a requirement? Otherwise could it explain the performance penalty?
-
@orange said in 8 Times more CPU consumption on Aida-X Neural Models:
@DabDab I haven't trained any model yet, but loading models is done like this:
- Open the Neural Sine synth example in the Snippet Browser. Delete the synth.
- Then replace the sine example with one of the models above (the models are in json format, just copy/paste).
- Then open the neural node in FX as Scriptnode, select the model then you're good to go.
When you replace the neural network, you might need to restart HISE after saving, sometimes it doesn't update.
Wow... i will give it a try. Later I will need @griffinboy help.
-
@orange I am probably doing something wrong, but when I try to make this work, HISE crashes. Here is my process:
- I copy the NN code from the Sine synth example into the interface onInit script in my project
- I replace everything in the obj declaration with the .json from one of your AIDA-X captures
- I add a scriptnode math.neural node in FX
- I select the NN obj in the dropdown
- Hise crashes.
Any thoughts?
-
@Christoph-Hart Has there been a fix for this?
-
@JulesV I pushed the preliminary work I had on my mobile rig but it‘s not usable as it is. I‘ll need to do a few more performance tests and cleanup.
-
@Christoph-Hart Thank you.
I see you also added ONNX. I'm not sure if we can open NAM models in ONNX, but it would be great to be able to load and run NAM models with performance.
-
peak developer humor
-
@aaronventure haha I would love to be as funny as this, but in this case my old keyboard with the defect
d
key pranked me one last time... but damn that's a solid joke. -
@Christoph-Hart said in 8 Times more CPU consumption on Aida-X Neural Models:
@JulesV I pushed the preliminary work I had on my mobile rig but it‘s not usable as it is. I‘ll need to do a few more performance tests and cleanup.
Has this issue been resolved? I still observe the same situation in the current commit.
-
@Christoph-Hart said in 8 Times more CPU consumption on Aida-X Neural Models:
@JulesV I pushed the preliminary work I had on my mobile rig but it‘s not usable as it is. I‘ll need to do a few more performance tests and cleanup.
Almost 6 months passed. The problem still persists. Why is the neural node still unusable after all this time?
You need to solve this problem as soon as possible, my friend.
-
@Fortune just don't use it then.
-
@Christoph-Hart said in 8 Times more CPU consumption on Aida-X Neural Models:
@Fortune just don't use it then.
Wow, what an amazing answer you gave as the creator of HISE :)))
It has nothing to do with me bro, the question is this:
Will the Developers be able to use Neural networks with HISE or not?
Will your HISE be compatible with the future or not? That is the question.
It is obvious from your answer that you have failed to solve the source of the problem. But by acting like this, all you will do is alienate people and ruin your potential future businesses, nothing else.
-
@Fortune said in 8 Times more CPU consumption on Aida-X Neural Models:
It has nothing to do with me bro,
Then I guess its not a problem.
HISE is an open source project - you cannot expect any given piece of functionality to get added and to be supported because you want it.
However you are not stuck with the whims of @Christoph-Hart , if there's something you want and Christoph has not built it or not completed it to your satisfaction - then you can go build it yourself.
-
I'd rather remove the entire RT Neural framework from HISE so it doesn't raise false expectations, but it's way down on my priority list to spend any time on that issue and your communication skills just pushed it way further down.
15 upvotes to this post and that shit is gonzo.
-
@Christoph-Hart please don’t get away from implementing this, at whatever pace fits with your calendar. I understand the frustration of getting such behaviour from frustrated people, but one is not all. We all expect new stuff, fixes, and that "bloody function only I can dream about even if takes the rest of your life working like a mule to implement it and that I will just play with once and say « arrff… I finally don’t need it… » "
It is for sure something many of us are counting on, but teaching you on the way you have to do your job is not a correct behaviour.
As @Lindon said, since Hise is open source, one cannot hard claim a function he cannot implement by himself, but kindly ask, expect, cross fingers, and raise votes for his party.
Empathy, Hise, and
are the first building blocks for a better world!
-
@ustk yeah thats what we really want; more votes for partying....thats what you meant right?