{"id":24870946,"url":"https://github.com/inisis/brocolli","last_synced_at":"2025-04-13T05:06:51.262Z","repository":{"id":34319130,"uuid":"168733444","full_name":"inisis/brocolli","owner":"inisis","description":"Everything in Torch Fx","archived":false,"fork":false,"pushed_at":"2024-06-07T15:53:50.000Z","size":6183,"stargazers_count":341,"open_issues_count":2,"forks_count":61,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-13T05:06:44.871Z","etag":null,"topics":["caffe","onnx","pytorch","quantization"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inisis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-01T17:17:22.000Z","updated_at":"2025-04-10T11:46:05.000Z","dependencies_parsed_at":"2023-09-22T22:42:51.826Z","dependency_job_id":"50eec7ab-4988-4027-a96b-7f37e399c916","html_url":"https://github.com/inisis/brocolli","commit_stats":{"total_commits":439,"total_committers":9,"mean_commits":48.77777777777778,"dds":"0.11617312072892938","last_synced_commit":"75485ec3d60d01e6de3fc15d4e86b3076e647f5f"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inisis%2Fbrocolli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inisis%2Fbrocolli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inisis%2Fbrocolli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inisis%2Fbrocolli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inisis","download_url":"https://codeload.github.com/inisis/brocolli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665748,"owners_count":21142123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["caffe","onnx","pytorch","quantization"],"created_at":"2025-02-01T04:17:44.289Z","updated_at":"2025-04-13T05:06:51.215Z","avatar_url":"https://github.com/inisis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# brocolli (Deprecated, this repo is no longer maintained)\n\ntorch fx based pytorch model converter, including pytorch2caffe, pytorch2onnx.  \ntorch fx based pytorch model quantizier.\n\n# Installation\n```\npip install brocolli\n```\n\n# How to use\n* torch2caffe\n    * caffe installation\n    ```bash\n    pip install brocolli-caffe\n    ```\n\n    ```\n    import torchvision.models as models\n    from brocolli.converter.pytorch_caffe_parser import PytorchCaffeParser\n\n    net = models.alexnet(pretrained=False)\n    x = torch.rand(1, 3, 224, 224)\n    pytorch_parser = PytorchCaffeParser(net, x)\n    pytorch_parser.convert()\n    pytorch_parser.save('alexnet')\n    ```\n    run this script until you see \"accuracy test passed\" on screen, then you can get alexnet.caffemodel and alexnet.prototxt under under current folder.\n\n* torch2onnx\n    ```\n    import torchvision.models as models\n    from brocolli.converter.pytorch_onnx_parser import PytorchOnnxParser\n\n    net = models.alexnet(pretrained=False)\n    x = torch.rand(1, 3, 224, 224)\n    pytorch_parser = PytorchOnnxParser(net, x)\n    pytorch_parser.convert()\n    pytorch_parser.save('alexnet.onnx')\n    ```\n    run this script until you see \"accuracy test passed\" on screen, then you can get alexnet.onnx under current folder.\n\n# Contact\n QQ Group: 597059928\n \n ![image](https://raw.githubusercontent.com/inisis/brocolli/master/imgs/QGRPOUP.png)\n \n# Show your support\n  Give a 🌟 if this project helpes~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finisis%2Fbrocolli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finisis%2Fbrocolli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finisis%2Fbrocolli/lists"}