Skip to content

Tracing and profiling in mediapipe #4

@XinJiang1994

Description

@XinJiang1994

I have sovle the problem of low resolution, but I met a new problem. There is a 10s delay of the vedio. I want to trace the computing time of each node to find the causes. So I follow the instructions of this link https://google.github.io/mediapipe/tools/tracing_and_profiling.html#enabling-tracing-and-profiling. But it doesn't work.
I guess I put the following configure in the wrong place:
profiler_config {
trace_enabled: true
enable_profiler: true
trace_log_interval_count: 200
trace_log_path: "/sdcard/Download/"
}
I first put it in the the CalculatorGraphConfig (in /mediapipe/framework/calculator.proto) . Then it failed to compile.
Then I put it in the graph file(portrait_segmentation.pbtxt) and this time the compiling is ok. But I still didn't get the tracing files.
Do you have any idea about this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions