Luigi commited on
Commit
d474b05
1 Parent(s): e7b68a5

Apply constant folding

Browse files
constant_folding.sh ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Loop through all .onnx files in the current directory
4
+ for model in *.onnx; do
5
+ echo "Sanitizing model: $model"
6
+ # Perform sanitization using polygraphy
7
+ polygraphy surgeon sanitize "$model" --fold-constants --output "$model"
8
+ echo "Sanitization complete for: $model"
9
+ done
10
+
11
+ echo "All models have been sanitized."
rtmo-l.fp16.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:41842e64e5a06910f8795264c13ca64d46ab445cbaedd9556341a283a15120e4
3
- size 88036975
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:955c0c6566c46b8c720cdd822bda8d647827fa7d76e89371cc7f287e392a72ed
3
+ size 88025438
rtmo-l.fp16_batch1.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:edcaf1892cf98f41139ef5bb308d0508e882bf5422fce69344d87c20c8a00e6b
3
- size 88033360
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82f9f0be31cc2591bf15af674105820c4306ef6c4862eee0eaeeaa2b7a7ca488
3
+ size 88013266
rtmo-l.fp16_batch2.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:aab61c157dab9baa9e73df8253509bd1f63e3130f80b1abbf1777c2209c12e4a
3
- size 88033499
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ed95801d5a9822f3f809af86d25a004428b42bdd92d9014ba5dcee62cf7f863
3
+ size 88013362
rtmo-l.fp16_batch4.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:420480004f58500754e2de9aa9b330400fc5857d2d9df715d5050b139a7d4442
3
- size 88033499
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:caa71599528ed1e54b78ff732d9378fa292e83cc06ad00ddc9d8532344228f35
3
+ size 88013510
rtmo-l.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:17f5d796e96b1ba8a7a137c77df449121de98463325ead8ad51f76eae0aa2410
3
- size 175941851
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8192d2fa08778d41cde061957687f3e1396f46acc0fc24c261ee1c01f7416673
3
+ size 175931300
rtmo-l_batch1.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:179dc1d50097ff7c7c9d4346ee7f843e57f0aeb0d9753d8b3971d78b8602e40c
3
- size 175938301
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:702d40477ebf4c99d4f47640c6a97fecb6de57db5ad3df68f104e3f8c6126860
3
+ size 175919191
rtmo-l_batch2.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:83b3fc50d63a3d6bf318814940b555edb613c70128a05fcf9f6c2998668d67f9
3
- size 175938440
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2eabba0dee5836d752d25632d1c3fddf3ffadb0cf9b0adb09601e594a9ee96da
3
+ size 175919297
rtmo-l_batch4.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:37b856802f7d4b3749681679b581512fa21b4726f29e074caa6a012ddaaa1747
3
- size 175938440
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dd7dcf27c2738bce5ac76e4e40fbc5d86ae0768a654c13709f2941e026d5e1a
3
+ size 175919465
rtmo-m.fp16.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e4c1f6a2f2910516c3036cf7ae9d2882ddb60da0ecc9933d0ab1b8f0da626a55
3
- size 44714762
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:908b45cc80feb94e9abbfc1c3254db53da1c4853a8e70e2985c5d10d1a06cf74
3
+ size 44703294
rtmo-m.fp16_batch1.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f38a770a2568b944485a9bec1b72dc6a96de9beb3198b1f7e997a7434eb4f8d3
3
- size 44711422
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:173e198fedb731ed4fb8feb9f03f6d10f30902f489cf89341a82111348a13ae0
3
+ size 44691469
rtmo-m.fp16_batch2.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:da240ee699888f7e74fbc3ca90a50676a2e3e639e990db7eb442d1d2fbfacd8f
3
- size 44711561
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a8a59e0138a3e7781ebcc63af6769cdfbcdee5302e8a706d5b54a220f1ffb4e
3
+ size 44691565
rtmo-m.fp16_batch4.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:229d81631c2afff2bff2c0b32ee1c02a574456534e2fb4d1ae102863a0cbfad4
3
- size 44711561
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1801d07ed9cd0dcdb5d59d2fb5eeb48ec3a696e102e967fb7e7a8134dcc1bd3
3
+ size 44691713
rtmo-m.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8d37517b7ab13732ebab08d2fe39a3b0f9991daf5828336078239500a9cf687c
3
- size 89307176
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30c6971f5ed7bd8acf7184135579856568f9dad456e4fe6fd66da6580eb34512
3
+ size 89296694
rtmo-m_batch1.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:969bd4ee49247d9d785587bb3f2e0444ed581ecedc52b80c8cd0b0aef1006a47
3
- size 89303901
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:225d7a1f39b38bcf35dd44c02ba60cb1ecda4afceaeb222a6ee5d208c1f02a99
3
+ size 89284932
rtmo-m_batch2.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b41799984e3c254a0fb8fca6462113b09a30c463bf78214b4cc4adc3cba34fd4
3
- size 89304040
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e041829257279a83008cb64ba4cf651440a1f5ff7230e706f1b2bd112eb26725
3
+ size 89285038
rtmo-m_batch4.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5da7316228f79eab29f18d88e7fe6a564239bf15c16602db759980f27d786b14
3
- size 89304040
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab10a9d4dfcc2936c5b83d91bd08b8c9197c66a701fe08eab02fdbae8c0fa950
3
+ size 89285206
rtmo-s.fp16.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0f3c71e5182f44d04b0f51fbbc8c1185907e47e0467bdf2eba200ec91d3fa920
3
- size 19881237
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25c5f673bb64853f01f3b77c87a85d51dd85f53f95ddd11fbcf635166e0e0391
3
+ size 19869781
rtmo-s.fp16_batch1.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ec7855a1a60a74be2444f702a74e1a4b949af79c2faed021be0b84ea0229da21
3
- size 19878232
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41ae3d2acdff59090268ff1b29a1ece8c3575fd03cd4a14b49cb32d92f5d73f6
3
+ size 19858292
rtmo-s.fp16_batch2.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e3ad06f50f151ae195e777215b20fdc3d75261525cf46f43966d2b717dc1c187
3
- size 19878371
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96a0e22e3f75956d1c4b72169e1cddf5c056ca9a91c365b34a8686c4affa4f64
3
+ size 19858388
rtmo-s.fp16_batch4.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a3decfabcb363c4daef87c52acd613006b9c0fbe5fa856e792fa896f98b99a55
3
- size 19878371
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a63dafe8a6316e337e1ce06e18db7f3a33ed56d077da7201eb7045bc5ed0239f
3
+ size 19858536
rtmo-s.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f9f7d1c4491b63ec8e85ef4ea729b43593fb35502ee8194ddd514f859c418cf7
3
- size 39651665
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8230d778ed547499b29a292d918bc2ee7164c2298934e48de43a2d879b79d21
3
+ size 39641192
rtmo-s_batch1.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ea1af2753e6d4044b9a257a90f4528fe4a9e2d802d29abe1883d062ef2a8a507
3
- size 39648725
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09d293ba5609b5c4adf081470a62d37cd5369c88082aecd75921b8f494bba156
3
+ size 39629766
rtmo-s_batch2.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5e40052c560a221106698fd4fdf93659eb944beff0646fbf8d2e96d67c3a2d42
3
- size 39648864
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f50db79ee81cd4b58432b6c0de40aaf094885a6e475e96732720305f3fc97854
3
+ size 39629872
rtmo-s_batch4.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:92bcf715fd6274cbf32f50149f1fa5c10a835dc2a7be4b3ec6cdac7682badc1f
3
- size 39648864
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7ff522c8b2961e1d7ddd0041b6c6fda20d4924c9000825d4f858adbd2e4ba16
3
+ size 39630040
rtmo-t.fp16.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8f07a4f57e575da5a3ef9b2f12259b2b2203f5ed22eaec4d9035caa9f01b1b04
3
- size 13743176
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:227a75f6b5b954f05cf595d2171013b97a1b885c512985590d077ff599502cd6
3
+ size 13731720
rtmo-t.fp16_batch1.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3e45a860a70e1be3ffca63c09bd1465d18286f60a75d7a2ba5fae1cca4d94793
3
- size 13740171
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e33d21bbec8f2bab99bbd3da6ca8b66cb0c1b6aaac78eed3c948e968e100fb6
3
+ size 13720231
rtmo-t.fp16_batch2.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6d505c5c09ae2b9a5d8a07298b7ef792412403c3de52606b130d18b0d1473fc0
3
- size 13740310
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc0fb923e777aa561cc1153f6294496687a79e1ee5e70d5e3183da053a37c8a5
3
+ size 13720327
rtmo-t.fp16_batch4.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8d38539f7d308b4ef91b1827e750ca8ff3541f9abba23b3977157b7a9a0ba295
3
- size 13740310
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1358b2bc05359c7fe893bf5663b163e57912d8faf2ef14601d9df15dcb1576d5
3
+ size 13720475
rtmo-t.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0bc9c47920675ec6c216717793fb9e9f563a54dd103a6f48cf30647552bcd9c3
3
- size 27375834
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7fc5238621599251453bc250b4f3e76b7141e2413f32baa12d84cdff882617c
3
+ size 27365361
rtmo-t_batch1.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6ab4d4abe2b43fd70d4e645e60b960d1c43550ef6f29e9e9e957d51f9232fef6
3
- size 27372894
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43afc86380403d83ca018f038ec5d963c1fcb169a55052828f90d39354c9014e
3
+ size 27353935
rtmo-t_batch2.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:53f693367f8b9310388912f8b51e32e1f3afeb9b4bb78c114e42d19651fd878d
3
- size 27373033
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cb92d4011ab7e962d606c85a500098040b41406f7662c9ea8ed90c2654bfa09
3
+ size 27354041
rtmo-t_batch4.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:060380c2a1c5fbeece3c1d53d6fee162724e87e1735f2c2b6b140561f66ffeaa
3
- size 27373033
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:555b92f1b29d04109e9dcc55544bf94cfe5fddd85dd55201f04a09a8b91e3956
3
+ size 27354209