[Bug] (suggested fix) mmrazor.models.algorithms.mm_architecture.MMArchitectureQuant.get_deploy_model()
fails if predict
mode lacks nodes from the model.quantizer.tracer.skipped_methods
configuration, but the architecture quantizer.prepare(fp32_model)
has these nodes.
#642
Labels
bug
Something isn't working
Describe the bug
Looking to do a QAT of the TopdownPoseEstimator model, I skipped
RTMCCHead.predict
andRTMCCHead.loss
to avoid errors during tracing. This model trains fine as a fake quantized model.Once running the deploy with a local branch merge from the mmdeploy branch for_mmrazor to the v1.3.1 branch, and applying patches decribed in #632 #633 #634 and #637, I run into an error.
I suggest to use the
tensor
mode instead, but i'be yet to test it.EDIT: after testing this I got this error:
I gather this means that to fix this one needs to use the predict mode state dict, even with the missing keys, somehow.
The text was updated successfully, but these errors were encountered: