bmf icon indicating copy to clipboard operation
bmf copied to clipboard

运行人脸检测demo时会一直打印:[info] *** dropping frame 7 at ts 3584。请问:dropping frame是什么意思?是检测时抽帧检测的吗?谢谢

Open QQiangren opened this issue 1 month ago • 4 comments

我的代码如下: import torch import torch.nn.functional as F import numpy as np import sys import time import tensorrt as trt import bmf.hml.hmp as mp from nms import NMS import PIL from PIL import Image

def main(): graph1 = graph({'dump_graph':1})

video = graph1.decode({
    "input_path": "./face.mp4",
    #"video_params": {
    #    "hwaccel": "cuda",
    #}
})["video"]

video = video.module("trt_face_detect", {
    "model_path": "./version-RFB-640.engine",
    "label_to_frame": 1,
    "input_shapes": {
        "input": [1, 3, 480, 640]
    }}, entry="trt_face_detect.trt_face_detect")

video = video.encode(
    None, {
        "output_path": "./trt_out.mp4",
        "video_params": {
            "codec": "h264_nvenc",
            "bit_rate": 5000000,
        }
    })

video.run()

if name == "main": main()

QQiangren avatar May 08 '24 05:05 QQiangren