Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

add model zoo #323

Open
ChenMinQi opened this issue Dec 16, 2019 · 1 comment
Open

add model zoo #323

ChenMinQi opened this issue Dec 16, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@ChenMinQi
Copy link

ChenMinQi commented Dec 16, 2019

🚀 Feature

model zoo just like detectron2

Motivation

We can quickly know the accuracy/train time/inference time of each model.

Pitch

just like this, detectron2 model zoo

Alternatives

N/A

Additional context

N/A

@vreis vreis added the enhancement New feature or request label Dec 16, 2019
@dsp6414
Copy link

dsp6414 commented May 3, 2020

i use torchvision.models for model zoo
[code]
def Create_Model_From_Zoo(num_classes=4):
model = models.resnet50(pretrained=True)
num_ftrs = model.fc.in_features
model.fc = nn.Linear(num_ftrs,num_classes)
classy_model = ClassyModel.from_model(model)
return classy_model

...
config_file='./configs/test.json'
config = load_json(config_file)

model = Create_Model_From_Zoo(num_classes=4)
task = (
My_ClassificationTask()
.set_loss(build_loss(config["loss"]))
.set_model(model)
.set_optimizer(build_optimizer(config["optimizer"]))
.set_meters([AccuracyMeter(topk=[1])])
)

...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants