Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bevfomer deploy bug #447

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/bevformer/python/infer_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import paddle
from paddle import inference

from paddle3d.ops import ms_deform_attn
from paddle3d.ops.ms_deform_attn import ms_deform_attn
from paddle3d.apis.config import Config
from paddle3d.apis.trainer import Trainer
from paddle3d.slim import get_qat_config
Expand Down
2 changes: 1 addition & 1 deletion paddle3d/models/detection/bevformer/bevformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def export(self, save_dir: str, **kwargs):
input_spec = [image_spec, pre_bev_spec, img_metas_spec]

paddle.jit.to_static(self, input_spec=input_spec)
if self.is_quant_model:
if self.is_quant_model():
self.qat.save_quantized_model(
model=self,
path=os.path.join(save_dir, "bevformer_inference"),
Expand Down