HARKError: "No output terminal in network 'MAIN'"

HARK FORUM HARKError: "No output terminal in network 'MAIN'"

This topic contains 4 replies, has 2 voices, and was last updated by Avatar kohira 4 days, 23 hours ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1193
    Avatar
    kohira
    Participant

    Hello,

    To get only separated wav files, I run a file my_sep_rec_offline.n which is obtained from a sample file sep_rec_offline.n by deleting sub_recognition.
    But it stops with a comment as below.

    Could you please point out bugs in the my_sep_rec_offline.n?

    Thank you.

    ———————-
    Stopped
    Start HARK middleware:
    network: my_sep_rec_offline.n
    execute: my_sep_rec_offline.n
    process: local
    toolbox: [‘C:/Program Files/HARK/lib/hark/toolbox’]
    args: []

    Traceback (most recent call last):
    File “C:\ProgramData\Anaconda3\Scripts\batchflow-script.py”, line 11, in <module>
    load_entry_point(‘harkmw==3.0.0’, ‘console_scripts’, ‘batchflow’)()
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\main.py”, line 102, in main
    app.run(process_name)
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\process.py”, line 65, in run
    network = builder.build(self.document, self.params, process_name)
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\logic\builder.py”, line 36, in build
    network = self.build_network(document, None, network_def, parameters, process_name)
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\logic\builder.py”, line 54, in build_network
    raise HARKError(“No output terminal in network ‘%s'” % network_def.name)
    harkmw.HarkError.HARKError: “No output terminal in network ‘MAIN'”
    ———————-

    #1195
    Avatar
    lapus.er
    Participant

    Hi Kohira,

    This error means that you missed setting an Output in your MAIN tab.

    Please do the following steps:
    1) Load your network file.
    2) Click on the MAIN tab.
    3) Right-click the ‘OUTPUT’ in the ‘MAIN_LOOP’ node
    4) Select ‘Set as Output’.
    ** This will pop-up a dialog, prompting you to input an Output name. You can just use the default value, OUTPUT. Then, click Ok.
    5) Click Save.

    After those steps above try executing the network. Please let me know if this solves your problem.

    Cheers,
    HARK Support Team

    #1196
    Avatar
    kohira
    Participant

    Hi,

    I executed a modified my_sep_rec_offline_2.n NOT by harkmw.exe but on HARK Designer 3.0.0, and got another error shown below.

    Should I add any node?

    Thank you.
    Kohira

    —————————-
    Stopped
    Start HARK middleware:
    network: my_sep_rec_offline_2.n
    execute: my_sep_rec_offline_2.n
    process: local
    toolbox: [‘C:/Program Files/HARK/lib/hark/toolbox’]
    args: []

    reading A matrix

    72 srcs, 8 microphones, 512 points

    Traceback (most recent call last):
    File “C:\ProgramData\Anaconda3\Scripts\batchflow-script.py”, line 11, in <module>
    load_entry_point(‘harkmw==3.0.0’, ‘console_scripts’, ‘batchflow’)()
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\main.py”, line 102, in main
    app.run(process_name)
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\process.py”, line 71, in run
    network.run(self)
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\logic\network.py”, line 46, in run
    self.proceed(0, process)
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\logic\network.py”, line 103, in proceed
    count = self.proceed_frame(count, process)
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\logic\network.py”, line 134, in proceed_frame
    minimum_count = min(minimum_count, node.push_data(None, count, process))
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\logic\node.py”, line 129, in push_data
    minimum_target_count = min(minimum_target_count, output_proxy.push_data(target_count, process))
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\logic\proxy.py”, line 180, in push_data
    count = self.output_node.push_data(self, count, process)
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\logic\node.py”, line 129, in push_data
    minimum_target_count = min(minimum_target_count, output_proxy.push_data(target_count, process))
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\logic\proxy.py”, line 178, in push_data
    self.output_node.network.push_data(input, count, process)
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\logic\network.py”, line 225, in push_data
    return self.proceed(count, process)
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\logic\network.py”, line 78, in proceed
    condition_satisfied = node.get_output(“OUTPUT”, internal_count)
    File “C:\ProgramData\Anaconda3\lib\site-packages\harkmw\types\native_node.py”, line 126, in get_output
    return self.native_node.get_output(name, count)
    RuntimeError: HARK-Middleware: HARK exception thrown at harkmw/src/node.cc:215 (Node_get_output): Cast error: Trying to cast ObjectRef (N4HARK7FILEPTRE) into N4HARK7IStreamE
    C:\msys64\home\NAE2\work\src\hark-base\hark-base\src\BufferedNode.cc line 98: Node AudioStreamFromWave (type 19AudioStreamFromWave) Exception caught in BufferedNode::getOutput
    C:\msys64\home\NAE2\work\src\hark-base\hark-base\src\BufferedNode.cc line 98: Node ProxyNode (type N6HARKMW9ProxyNodeE) Exception caught in BufferedNode::getOutput
    C:\msys64\home\NAE2\work\src\hark-base\hark-base\src\Collector.cc line 91: Node Collector (type N4HARK9CollectorE) Exception caught in Collector::getOutput

    done
    initialize
    —————————-

    #1199
    Avatar
    lapus.er
    Participant

    Hi kohira,

    The error you encountered has something to do with the input to the AudioStreamFromWave node. I reviewed your network file and noticed that you placed the value FILES inside the TYPE parameter of the InputStream node (see attached screenshot).

    Please remove the value and leave it blank. After that, save the network file and execute again. If there is still an error, kindly post it here.

    Cheers,
    HARK Support Team

    #1201
    Avatar
    kohira
    Participant

    Hi,

    I do thank you for your reviewing.

    I ran a network as yours, which I also change OUTPUT_GAIN from 1.0 to 20000.0 in a node of Synthesize.

    It resulted in very good.

    Thank you.
    Kohira

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.