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

Object detection models #13

Open
denisvlr opened this issue Nov 8, 2019 · 1 comment
Open

Object detection models #13

denisvlr opened this issue Nov 8, 2019 · 1 comment

Comments

@denisvlr
Copy link

denisvlr commented Nov 8, 2019

Pytorch recently included pretrained object detection models such FastRCNN (
torchvision.models.detection.faster_rcnn).
Do you know how to integrate them with fastai?

@PPPW
Copy link
Owner

PPPW commented Nov 28, 2019

Hi @denisvlr,
PyTorch provided a very good tutorial on this topic:
https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html

It does the transfer learning, and we can customize the learning rate scheduling. If we want to use it with fastai, we have to customize the data loader as well as the loss function, as the PyTorch model requires both image and target as input, and the forward returns the loss during training. I don't think it's worthy tweaking it to fit the fastai framework, I think it's much less work by customizing from the above tutorial...

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

No branches or pull requests

2 participants