from modelscope.models import Model
from modelscope.exporters import Exporter
model_id = 'damo/cv_unet_person-image-cartoon_compound-models'
model = Model.from_pretrained(model_id)
output_files = Exporter.from_model(model).export_onnx(opset=13, output_dir='/tmp')
print(output_files)
ERROR: 'ConfigDict' object has no attribute 'model'
Code that can provide efficient conversion of ONNX
The conversion failed using the following methods
from modelscope.models import Model from modelscope.exporters import Exporter model_id = 'damo/cv_unet_person-image-cartoon_compound-models' model = Model.from_pretrained(model_id) output_files = Exporter.from_model(model).export_onnx(opset=13, output_dir='/tmp') print(output_files)
ERROR: 'ConfigDict' object has no attribute 'model'
Code that can provide efficient conversion of ONNX