프로젝트
GitHub에서 보기
inisis/brocolli
소개
Everything in Torch Fx
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalbrocolli (Deprecated, this repo is no longer maintained)
torch fx based pytorch model converter, including pytorch2caffe, pytorch2onnx.
torch fx based pytorch model quantizier.
Installation
pip install brocolli
How to use
torch2caffe
- caffe installation
pip install brocolli-caffeimport torchvision.models as models from brocolli.converter.pytorch_caffe_parser import PytorchCaffeParser net = models.alexnet(pretrained=False) x = torch.rand(1, 3, 224, 224) pytorch_parser = PytorchCaffeParser(net, x) pytorch_parser.convert() pytorch_parser.save('alexnet')run this script until you see "accuracy test passed" on screen, then you can get alexnet.caffemodel and alexnet.prototxt under under current folder.
torch2onnx
import torchvision.models as models from brocolli.converter.pytorch_onnx_parser import PytorchOnnxParser net = models.alexnet(pretrained=False) x = torch.rand(1, 3, 224, 224) pytorch_parser = PytorchOnnxParser(net, x) pytorch_parser.convert() pytorch_parser.save('alexnet.onnx')run this script until you see "accuracy test passed" on screen, then you can get alexnet.onnx under current folder.
Contact
QQ Group: 597059928

Show your support
Give a 🌟 if this project helpes~
관련 프로젝트 살펴보기
불러오는 중…