Forum
    • Categories
    • Register
    • Login

    NeuralNetwork.loadNAMModel() functional?

    Scheduled Pinned Locked Moved General Questions
    20 Posts 5 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dan KorneffD
      Dan Korneff @iamlamprey
      last edited by

      @iamlamprey Does this work on your system?

      https://hub.korneffaudio.com/index.php/s/J2XXWaB4HRKJRx7
      I can't post this snippet directly cause I get an error

      
      Please enter a shorter post. Posts can't be longer than 64000 character(s).
      

      It's a pretty large cause it has the profile embedded instead of using an external file.

      Dan Korneff - Producer / Mixer / Audio Nerd

      OrvillainO iamlampreyI 2 Replies Last reply Reply Quote 0
      • OrvillainO
        Orvillain @Dan Korneff
        last edited by

        @Dan-Korneff Works here Dan. BTW, you can reduce your CPU usage by doing this:
        0591e0b0-e5f4-47b1-ab39-e91eef083bad-image.png

        In case you weren't aware. Trick from @aaronventure from another thread.

        Musician - Instrument Designer - Sonic Architect - Creative Product Owner
        Crafting sound at every level. From strings to signal paths, samples to systems.

        Dan KorneffD YarostY 2 Replies Last reply Reply Quote 1
        • Dan KorneffD
          Dan Korneff @Orvillain
          last edited by

          @Orvillain nice! I was just trying to keep the original example intact.

          Dan Korneff - Producer / Mixer / Audio Nerd

          1 Reply Last reply Reply Quote 1
          • iamlampreyI
            iamlamprey @Dan Korneff
            last edited by iamlamprey

            @Dan-Korneff said in NeuralNetwork.loadNAMModel() functional?:

            @iamlamprey Does this work on your system?

            Yeah that one works fine, but if I try and save the object as a .nam again and load it:

            Content.makeFrontInterface(600, 600);
            
            const nn = Engine.createNeuralNetwork("newNN");
            const af = FileSystem.getFolder(FileSystem.AudioFiles); // thought a wildcard might play nicer
            
            // Any of these:
            const file = FileSystem.fromAbsolutePath("myCoolProjectFolder/Scripts/model.nam");
            //const file = FileSystem.fromAbsolutePath("myCoolProjectFolder/AudioFiles/model.nam");
            //const file = af.getChildFile("model.nam");
            
            // Then convert to json
            // Also tried loading the raw .json without the loadAsObject method
            const json = file.loadAsObject();
            
            nn.loadNAMModel(json);
            

            Same issue, have to move it to/from a container before it works.

            Dan KorneffD 1 Reply Last reply Reply Quote 0
            • Dan KorneffD
              Dan Korneff @iamlamprey
              last edited by

              @iamlamprey so you're having a file extension issue with .nam?
              Rename it to .js and include it like any other script and see if that works.

              Dan Korneff - Producer / Mixer / Audio Nerd

              iamlampreyI 1 Reply Last reply Reply Quote 0
              • iamlampreyI
                iamlamprey @Dan Korneff
                last edited by

                @Dan-Korneff said in NeuralNetwork.loadNAMModel() functional?:

                @iamlamprey so you're having a file extension issue with .nam?

                I'm not sure it's the .nam being a problem, I can convert it to .json and import it just fine:

                1a89ab2b-1f66-4496-ac6f-6439c6ee2e65-{54D58F6B-1919-4F79-B0B8-A2DF183961E9}.png

                This object is what I'm passing to the NN, it's just not updating when I call loadNAMModel() or clearModel() until I move it out of the container. At this point I'd say it's my HISE installation, I'll try debugging it today.

                resonantR 1 Reply Last reply Reply Quote 0
                • resonantR
                  resonant
                  last edited by resonant

                  @Christoph-Hart Just a friendly bump. I hope you resolve the issues previously reported here regarding the Neural node (multiple neural model loading, CPU usage, crashes...etc.) as soon as possible. There are many people here waiting to use this node.

                  1 Reply Last reply Reply Quote 0
                  • YarostY
                    Yarost @Orvillain
                    last edited by

                    @Orvillain that newNN its an functionally amp sim? sorry for my english bro, i only speak spanish

                    1 Reply Last reply Reply Quote 0
                    • resonantR
                      resonant @iamlamprey
                      last edited by

                      @iamlamprey Have you solved this?

                      iamlampreyI 1 Reply Last reply Reply Quote 0
                      • iamlampreyI
                        iamlamprey @resonant
                        last edited by

                        @resonant Nope, I vibe coded a manual NAM wrapper for Altar:

                        https://github.com/nytemairqt/altar/blob/main/DspNetworks/ThirdParty/amp.h

                        1 Reply Last reply Reply Quote 0
                        • resonantR
                          resonant
                          last edited by resonant

                          NAM files cannot be embedded, which is a major problem. Hopefully, the neural node issues will be resolved as soon as possible.

                          iamlampreyI 1 Reply Last reply Reply Quote 0
                          • iamlampreyI
                            iamlamprey @resonant
                            last edited by

                            @resonant iirc NAM files are just large JSON objects which can be embedded in the final plugin easily

                            test it yourself, rename a NAM file to .json and open it in something like Sublime Text

                            resonantR 1 Reply Last reply Reply Quote 0
                            • resonantR
                              resonant @iamlamprey
                              last edited by resonant

                              @iamlamprey I've already tried this, the project freezes while loading.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              25

                              Online

                              2.2k

                              Users

                              13.5k

                              Topics

                              117.7k

                              Posts