Wrong location for engine file generation

Did you define engine-create-func-name in your config file?

You can refer to the following source code in /opt/nvidia/deepstream/deepstream-7.0/sources/libs/nvdsinfer/nvdsinfer_model_builder.cpp.
If you set a value to engine-create-func-name, the engine file will be named to model_xxxx_xx.engine.

You can modify the code here according to your needs.

if (cudaEngineGetFcn || cudaEngineGetDeprecatedFcn ||
            !string_empty(initParams.tltEncodedModelFilePath))
    {
        if (cudaEngineGetFcn || cudaEngineGetDeprecatedFcn)
        {
            /* NvDsInferCudaEngineGet interface provided. */
            char *cwd = getcwd(NULL, 0);
            modelPath = std::string(cwd) + "/model";
            free(cwd);
        }
        else