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

Shufflenet v2 pretrained #277

Merged
merged 2 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions flowvision/models/shufflenet_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
model_urls = {
"shufflenet_v2_x0_5": "https://oneflow-public.oss-cn-beijing.aliyuncs.com/model_zoo/flowvision/classification/ShuffleNetV2/shufflenet_v2_x0_5.zip",
"shufflenet_v2_x1_0": "https://oneflow-public.oss-cn-beijing.aliyuncs.com/model_zoo/flowvision/classification/ShuffleNetV2/shufflenet_v2_x1_0.zip",
"shufflenet_v2_x1_5": None,
"shufflenet_v2_x2_0": None,
"shufflenet_v2_x1_5": "https://oneflow-public.oss-cn-beijing.aliyuncs.com/model_zoo/flowvision/classification/ShuffleNetV2/shufflenet_v2_x1_5.zip",
"shufflenet_v2_x2_0": "https://oneflow-public.oss-cn-beijing.aliyuncs.com/model_zoo/flowvision/classification/ShuffleNetV2/shufflenet_v2_x2_0.zip",
}


Expand Down
2 changes: 0 additions & 2 deletions flowvision/models/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ def _legacy_zip_load(filename, model_dir, map_location, delete_zip_file=True):
members = f.infolist()
extracted_name = members[0].filename
extracted_file = os.path.join(model_dir, extracted_name)
if not os.path.exists(extracted_file):
os.mkdir(extracted_file)
f.extractall(model_dir)
if delete_zip_file and os.path.exists(filename):
os.remove(filename)
Expand Down
Loading