Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix export ssl models #257

Merged
merged 18 commits into from
Dec 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions easycv/apis/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def _export_swav(model, cfg, filename):

model_config = dict(
type='Classification',
pretrained=False, # avoid loading default pretrained backbone model
backbone=tbackbone,
)

Expand Down Expand Up @@ -426,6 +427,7 @@ def _export_moco(model, cfg, filename):

model_config = dict(
type='Classification',
pretrained=False, # avoid loading default pretrained backbone model
backbone=replace_syncbn(cfg.model.backbone),
head=dict(
type='ClsHead',
Expand Down Expand Up @@ -481,6 +483,7 @@ def _export_moby(model, cfg, filename):

model_config = dict(
type='Classification',
pretrained=False, # avoid loading default pretrained backbone model
backbone=replace_syncbn(cfg.model.backbone),
head=dict(
type='ClsHead',
Expand Down