menyifang / DCT-Net

Official implementation of "DCT-Net: Domain-Calibrated Translation for Portrait Stylization", SIGGRAPH 2022 (TOG); Multi-style cartoonization
Apache License 2.0
762 stars 75 forks source link

Provides code to convert the ONNX model #62

Closed ZTMIDGO closed 1 year ago

ZTMIDGO commented 1 year ago

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