Skip to content

Commit

Permalink
fix export (#3393) (#3410)
Browse files Browse the repository at this point in the history
  • Loading branch information
warrentdrew authored Feb 19, 2025
1 parent 99e301f commit 272c493
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions paddlex/repo_apis/Paddle3D_api/bev_fusion/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,17 @@ def export(self, weight_path, save_dir, **kwargs):
if save_dir is not None:
cli_args.append(CLIArgument("--save_dir", save_dir))

cli_args.append(CLIArgument("--save_name", "inference"))
cli_args.append(CLIArgument("--save_inference_yml"))

# PDX related settings
uniform_output_enabled = kwargs.pop("uniform_output_enabled", True)
export_with_pir = kwargs.pop("export_with_pir", False)
config.update({"uniform_output_enabled": uniform_output_enabled})
config.update({"pdx_model_name": self.name})
if export_with_pir:
config.update({"export_with_pir": export_with_pir})

self._assert_empty_kwargs(kwargs)
with self._create_new_config_file() as config_path:
config.dump(config_path)
Expand Down

0 comments on commit 272c493

Please sign in to comment.