Skip to content

Commit

Permalink
dev(narugo): add wd14 syncer, ci skip
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed May 12, 2024
1 parent 859e829 commit f8d873b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zoo/wd14/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from tqdm import tqdm

from imgutils.tagging.wd14 import MODEL_NAMES
from imgutils.utils import open_onnx_model

logging.try_init_root(logging.INFO)

Expand Down Expand Up @@ -104,7 +105,7 @@ def _is_fc(name):
onnx.save_model(model, onnx_file)

logging.info(f'Loading and testing for the exported model {onnx_file!r}.')
session = onnxruntime.InferenceSession(onnx_file)
session = open_onnx_model(onnx_file)
assert len(session.get_inputs()) == 1
assert len(session.get_outputs()) == 2
assert session.get_outputs()[1].name == embs_outputs[0]
Expand Down

0 comments on commit f8d873b

Please sign in to comment.