Closed buzhou1 closed 1 year ago
This is the onnx scale parameters about 1st(left) and 4th(right) for LearnableFakequantize ,they are same
Check if scales are in your Optimizer.
thanks! now the parameters can upgrade
This issue has not received any updates in 120 days. Please reply to this issue if this still unresolved!
` kwargs = { 'input_shape_dict': {'data': [1, 3, opt.imgsz, opt.imgsz]}, 'output_path': output_dir, 'model_name': model_name, 'dummy_input': None, 'onnx_model_path': os.path.join(output_dir, '{}_ori.onnx'.format(model_name)), } module_tmp = copy.deepcopy(model) module_tmp = module_tmp.cpu() convert_onnx(module_tmp.eval(), **kwargs) del module_tmp model = model.train()
exit(0)
I didn't change outher code