• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • Compute Graph Framework SDK Reference  5.6
    All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
    GUI Editor Tool

    A graphical editor tool, known as the DW Graph UI tool, can be used to open the graphlet JSON file for visualization. The tool supports creating and editing nodes, graphlets, and their JSON files. All attributes can be edited: names, comments, input/output ports, parameter, passes, connections, etc. In this section, we will go over some examples of creating a custom node/graphlet and generate associated JSON files.

    Invocation

    Using the release Debian package

    Before launching, please specify your working directory with NV_AV_TOP environmental variable:

    export NV_AV_TOP=<working_directory_path>

    The tool will then automatically search for JSON files specified under this directory. To launch the GUI tool, install the GUI editor tool from the provided Debian package and use the following command:

    /usr/local/driveworks-<version>/tools/dw-graph-ui/dw-graph-ui.bash

    Using host-installed Kit

    • Go to https://web.launcher.omniverse.nvidia.com/exchange/app
    • Download (Production)
      • Make downloaded file executable
    • Run the downloaded file
      • Login
      • Go to "Exchange"
      • Select "Omniverse Kit"
      • Choose the version 103.1.0
      • Install
    • Find kit executable in the latest version of Omniverse Kit: find -L ~/.local/ -executable -type f -name kit | sort -r | grep -m 1 /kit-

    Invoking kit

    Before launching, please specify your working directory with NV_AV_TOP environmental variable:

    export NV_AV_TOP=<working_directory_path>

    or by sourcing the environment script of the ndas repository:

    . scripts/envsetup.sh

    The tool will then automatically search for JSON files specified under this directory. To launch the GUI tool, invoke kit with the following arguments to start a specific extension:

    <path-to>/kit --ext-path $NV_AV_TOP/tools/experimental/graph/omni.dw.graph.ui/ --enable omni.dw.graph.ui

    Usage Examples

    To add a node, go to "Menu" and select "New Node" or click the first icon on the toolbar. In the property editor window, names can be specified for the node, input/output ports, parameters and passes. The example below illustrates the creation of a node called "TestNode" with its input port called "TestInput" (data type: "InputType"), output port called "TestOutput" (data type: "OutputType"), and a pass called SETUP that uses the CPU as its resource:

    Visualization of Node Descriptor

    Most actions are available on the toolbar and have tooltips describing their behavior. Additionally keyboard shortcuts are availabe when a graph window is selected. To display short-cut keys, click on the graph window and press ‘?’. A list of short-cut keys will be shown in a popup window. One of the options is to save the newly created node. To save the node, press "CTRL+s". A new node JSON file will be created in the directory specified in the file browser window.

    To create a graphlet with the nodes created, go to "Menu" and select "New Graphlet" or click the second icon on the toolbar. In the property editor window, names can be specified for the graphlet, graphlet input/output ports, and parameters. To add nodes or graphlets into this graphlet, drag and drop JSON files shown in the file browser window into the graphlet window. The new node and graphlet will show up in the graphlet window. The user can then create connections between nodes/graphlets in the GUI. Below is a screenshot of a new graphlet with dwCameraNode and dwPyramidNode nodes in dwnodes folder:

    Visualization of Graphlet Descriptor

    To save the newly created graphlet, press "CTRL+s". A new graphlet JSON file will be created in the directory specified.

    Individual subcomponents of a graphlet or connections can be selected by clicking on them. The parameters of that entity can then be edited in the parameter editor similar to the property editor mentioned before.

    More Details

    For more details see the README which is also accessible from within the UI, under the menu item "Help" -> "README".

    人人超碰97caoporen国产