Project import generated by Copybara.
GitOrigin-RevId: 1e13be30e2c6838d4a2ff768a39c414bc80534bb
This commit is contained in:
committed by
Sebastian Schmidt
parent
63e679d99c
commit
4dc4b19ddb
@@ -70,7 +70,7 @@ MediaPipe will emit data into a pre-specified directory:
|
||||
* On iOS, this can be reached through XCode. Select "Window/Devices and
|
||||
Simulators" and select the "Devices" tab.
|
||||
|
||||

|
||||

|
||||
|
||||
You can open the Download Container. Logs will be located in `application
|
||||
container/.xcappdata/AppData/Documents/`
|
||||
@@ -78,7 +78,7 @@ MediaPipe will emit data into a pre-specified directory:
|
||||
right click and select 'Show Package Contents' in Finder. Logs
|
||||
will be located in 'AppData/Documents/'
|
||||
|
||||

|
||||

|
||||
|
||||
Log files are written to `\<trace_log_path index\>.binarypb` where, by default,
|
||||
`\<trace_log_path\>` is equal to `mediapipe_trace_` (the entire path and file
|
||||
@@ -176,11 +176,11 @@ Trace logs can be analyzed from within the visualizer.
|
||||
|
||||
2. Click on the "Upload" button in the upper right.
|
||||
|
||||

|
||||

|
||||
|
||||
3. Click on "Upload trace file".
|
||||
|
||||

|
||||

|
||||
|
||||
A sample trace file has been generated for you:
|
||||
[sample_trace_binary.pb](../data/visualizer/sample_trace.binarypb)
|
||||
@@ -191,7 +191,7 @@ Trace logs can be analyzed from within the visualizer.
|
||||
5. A chart view will appear. All of your calculators will appear along the left
|
||||
with profiling information listed along the top.
|
||||
|
||||

|
||||

|
||||
|
||||
Click on a header to alternately sort that column in ascending or descending
|
||||
order. You can also scroll horizontally and vertically within the control to
|
||||
|
||||
+14
-14
@@ -21,7 +21,7 @@ that is available online.
|
||||
through a graph configuration that is pasted into the graph editor or
|
||||
uploaded. The user can visualize and troubleshoot a graph they have created.
|
||||
|
||||

|
||||

|
||||
|
||||
## Working within the Editor
|
||||
|
||||
@@ -29,12 +29,12 @@ Getting Started:
|
||||
|
||||
The graph can be modified by adding and editing code in the Editor view.
|
||||
|
||||

|
||||

|
||||
|
||||
* Pressing the "New" button in the upper right corner will clear any existing
|
||||
code in the Editor window.
|
||||
|
||||

|
||||

|
||||
|
||||
* Pressing the "Upload" button will prompt the user to select a local PBTXT
|
||||
file, which will overwrite the current code within the editor.
|
||||
@@ -43,7 +43,7 @@ The graph can be modified by adding and editing code in the Editor view.
|
||||
|
||||
* Errors and informational messages will appear in the Feedback window.
|
||||
|
||||

|
||||

|
||||
|
||||
## Understanding the Graph
|
||||
|
||||
@@ -53,24 +53,24 @@ The visualizer graph shows the connections between calculator nodes.
|
||||
enter the top of any calculator receiving the stream. (Notice the use of the
|
||||
key, "input_stream" and "output_stream").
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
* Sidepackets work the same, except that they exit a node on the right and
|
||||
enter on the left. (Notice the use of the key, "input_side_packet" and
|
||||
"output_side_packet").
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
* There are special nodes that represent inputs and outputs to the graph and
|
||||
can supply either side packets or streams.
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
## Visualizing Subgraphs
|
||||
|
||||
@@ -91,16 +91,16 @@ To visualize them:
|
||||
* In the MediaPipe visualizer, click on the upload graph button and select the
|
||||
2 pbtxt files to visualize (main graph and its associated subgraph).
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
* There will be 2 additional tabs. The main graph tab is
|
||||
`hand_detection_mobile.pbtxt`.
|
||||
|
||||

|
||||

|
||||
|
||||
* Clicking on the `HandDetection` node in purple redirects the view to the
|
||||
`hand_detection_gpu.pbtxt` tab.
|
||||
|
||||

|
||||

|
||||
|
||||
Reference in New Issue
Block a user