{"id":16916795,"url":"https://github.com/ternaus/clip2onnx","last_synced_at":"2025-04-05T13:27:30.239Z","repository":{"id":87572836,"uuid":"584557761","full_name":"ternaus/clip2onnx","owner":"ternaus","description":"Converts CLIP models to ONNX","archived":false,"fork":false,"pushed_at":"2023-01-17T23:00:14.000Z","size":29,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-11T09:18:42.394Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ternaus.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":"2023-01-02T23:01:25.000Z","updated_at":"2023-11-04T13:56:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"81aa7ed4-ce12-4c9e-8245-1d664ec8c42f","html_url":"https://github.com/ternaus/clip2onnx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternaus%2Fclip2onnx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternaus%2Fclip2onnx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternaus%2Fclip2onnx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternaus%2Fclip2onnx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ternaus","download_url":"https://codeload.github.com/ternaus/clip2onnx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247341476,"owners_count":20923448,"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":[],"created_at":"2024-10-13T19:29:54.122Z","updated_at":"2025-04-05T13:27:29.875Z","avatar_url":"https://github.com/ternaus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clip2onnx\nConverts CLIP models to ONNX\n\n# Convert models to ONNX\n## Visual\n`python -m model_conversion.to_onnx_visual -m \"ViT-L/14\" -o v.onnx`\n\n## Textual\n`python -m model_conversion.to_onnx_textual -m \"ViT-L/14\" -o t.onnx`\n\n## Multi langual textual\n`python -m model_conversion.to_onnx_multi_textual -o mt.onnx -t t.pt`\n\n# Benchmark\n`python -m model_conversion.benchmark_visual -m \"ViT-L/14\" -p v.onnx -n 50`\n`python -m model_conversion.benchmark_textual -m \"ViT-L/14\" -p t.onnx -n 50`\n\n\nAverage over 50 iteration\n\n## 2080Ti\n\n* **GPU**: GTX 2080 Ti\n* **CPU**: AMD Ryzen Threadripper 3970X 32-Core Processor\n\n\n| Mode  | Visual (seconds) | Textual (seconds) | Textual Multilang |\n| ------------- | ------------- |---------|----|\n| Pytorch CPU  | 0.771+-0.191  |0.068+-0.003|0.230+-0.106|\n| Pytorch GPU fp32  | 0.023+-0.000 |0.004+-0.000|0.010+-0.000|\n| Pytorch GPU fp16  | 0.009+-0.000 |0.004+-0.000|0.009+-0.000|\n| ONNX CPU  | 0.534+-0.098  |0.042+-0.001|0.126+-0.001|\n| ONNX GPU  | 0.024+-0.003  |0.005+-0.000|0.009+-0.001|\n\n## 1080 Ti\n\n* **GPU**: GTX 1080 Ti\n* **CPU**: Intel(R) Core(TM) i3-9350KF CPU @ 4.00GHz\n\n| Mode  | Visual (seconds) | Textual (seconds) | Textual Multilang |\n| ------------- | ------------- |---------|----|\n| Pytorch CPU  |0.503+-0.004|0.051+- 0.000|0.191+-0.000|\n| Pytorch GPU fp32  |0.037+-0.000|0.008+-0.000|0.017+-0.000|\n| Pytorch GPU fp16  |0.036+-0.000|0.006+-0.000|0.019+-0.000|\n| ONNX CPU  |0.715+-0.003|0.065+-0.000|0.221+-0.001|\n| ONNX GPU  ||||\n\n## A4000\n\n* **GPU**: A4000\n* **CPU**: AMD EPYC 7551P 32-Core Processor\n\n| Mode  | Visual (seconds) | Textual (seconds) | Textual Multilang |\n| ------------- | ------------- |---------|----|\n| Pytorch CPU  |13.428+-3.554|0.669+-0.286|3.362+-1.183|\n| Pytorch GPU fp32  |0.038+-0.011|0.021+-0.008|0.031+-0.017|\n| Pytorch GPU fp16  |0.061+-0.022|0.028+-0.009|0.087+-0.045|\n| ONNX CPU  |4.070+-1.286|0.364+-0.116|3.906+-2.229|\n| ONNX GPU  ||||","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fternaus%2Fclip2onnx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fternaus%2Fclip2onnx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fternaus%2Fclip2onnx/lists"}