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

MNASNet and Pretrained Weight #119

Merged
merged 8 commits into from
Sep 4, 2021
Merged

MNASNet and Pretrained Weight #119

merged 8 commits into from
Sep 4, 2021

Conversation

rentainhe
Copy link
Contributor

@rentainhe rentainhe commented Aug 19, 2021

本次PR的内容如下:

  • 使用对齐torchvision中mnasnet的实现
  • 添加eager train
  • 添加eager infer
  • 添加graph train
  • 添加graph infer
  • 添加README.md

已完成,可以merge

验证结果:
以下验证结果是在输入和权重完全一致的情况下校验是否对齐

model version dataset acc@1 acc@5
mnasnet0_5 Pytorch ImageNet2012 64.5214 85.5346
mnasnet0_5 OneFlow ImageNet2012 64.5214 85.5346
mnasnet1_0 Pytorch ImageNet2012 71.7091 90.3751
mnasnet1_0 OneFlow ImageNet2012 71.7091 90.3751

oneflow版本预训练权重下载链接:
mnasnet0_5: link
mnasnet1_0: link

@rentainhe rentainhe requested a review from Ldpe2G August 19, 2021 12:30
@rentainhe rentainhe requested a review from CPFLAME August 20, 2021 00:57
train_data_loader = OFRecordDataLoader(
ofrecord_root=args.ofrecord_path,
mode="train",
dataset_size=9469,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dataset_size感觉可以作为一个传参,因为数据集可选择两个

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

val_data_loader = OFRecordDataLoader(
ofrecord_root=args.ofrecord_path,
mode="val",
dataset_size=3925,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

Comment on lines +11 to +15
### 1. Prepare Traning Data And Pretrain Models
#### Download Ofrecord
```bash
wget https://oneflow-public.oss-cn-beijing.aliyuncs.com/datasets/imagenette_ofrecord.tar.gz
tar zxf imagenette_ofrecord.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

个人认为还可以加一个imagenet的下载地址,因为你的脚本里面可以选择imagenette和imagenet两个数据集

train_data_loader = OFRecordDataLoader(
ofrecord_root=args.ofrecord_path,
mode="train",
dataset_size=9469,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可当作传参

val_data_loader = OFRecordDataLoader(
ofrecord_root=args.ofrecord_path,
mode="val",
dataset_size=3925,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可当作传参

@rentainhe rentainhe mentioned this pull request Aug 26, 2021
11 tasks
@rentainhe rentainhe merged commit 62e0a97 into main Sep 4, 2021
@Ldpe2G Ldpe2G deleted the dev_mnasnet branch September 4, 2021 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants