gigatorch 0.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ Contact Dan Jacobellis
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.4
2
+ Name: gigatorch
3
+ Version: 0.0.0
4
+ Summary: gigatorch
5
+ Author-email: Dan Jacobellis <danjacobellis@utexas.edu>
6
+ License-Expression: LicenseRef-Proprietary
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.6
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: torch
13
+ Dynamic: license-file
14
+
15
+ # gigatorch
@@ -0,0 +1 @@
1
+ # gigatorch
@@ -0,0 +1,22 @@
1
+ [build-system]
2
+ requires = ["setuptools>=42", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "gigatorch"
7
+ version = "0.0.0"
8
+ description = "gigatorch"
9
+ authors = [
10
+ {name = "Dan Jacobellis", email = "danjacobellis@utexas.edu"}
11
+ ]
12
+ readme = "README.md"
13
+ license = "LicenseRef-Proprietary"
14
+ license-files = ["LICENSE"]
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "Operating System :: OS Independent"
18
+ ]
19
+ dependencies = [
20
+ "torch",
21
+ ]
22
+ requires-python = ">=3.6"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.4
2
+ Name: gigatorch
3
+ Version: 0.0.0
4
+ Summary: gigatorch
5
+ Author-email: Dan Jacobellis <danjacobellis@utexas.edu>
6
+ License-Expression: LicenseRef-Proprietary
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.6
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: torch
13
+ Dynamic: license-file
14
+
15
+ # gigatorch
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/normalize.py
5
+ src/gigatorch.egg-info/PKG-INFO
6
+ src/gigatorch.egg-info/SOURCES.txt
7
+ src/gigatorch.egg-info/dependency_links.txt
8
+ src/gigatorch.egg-info/requires.txt
9
+ src/gigatorch.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ torch
@@ -0,0 +1 @@
1
+ normalize
@@ -0,0 +1,12 @@
1
+ import torch
2
+
3
+ def in1k_timm(x, mean=(0.485, 0.456, 0.406), std=(0.229, 0.224, 0.225),):
4
+ """Re-normalize from [-1,1] to ImageNet mean/std.
5
+
6
+ Input: (..., C, H, W) float in [-1, 1]
7
+ Output: (..., C, H, W) float32
8
+ """
9
+ x = (x + 1.0) / 2.0 # [-1,1] -> [0,1]
10
+ mean = torch.tensor(mean, dtype=torch.float32, device=x.device).view(-1, 1, 1)
11
+ std = torch.tensor(std, dtype=torch.float32, device=x.device).view(-1, 1, 1)
12
+ return (x - mean) / std