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 @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