toshas / torch-fidelity

High-fidelity performance metrics for generative models in PyTorch
Other
1.01k stars 66 forks source link

0.3.0 miss requirements.txt #42

Closed Freed-Wu closed 1 year ago

Freed-Wu commented 1 year ago
$ wget https://files.pythonhosted.org/packages/source/t/torch-fidelity/torch_fidelity-0.3.0.tar.gz
...
$ tar vtaf torch_fidelity-0.3.0.tar.gz|grep requirements.txt
$ tar vtaf torch_fidelity-0.3.0.tar.gz
drwxr-xr-x anton/staff       0 2021-06-15 22:53 torch_fidelity-0.3.0/
-rw-r--r-- anton/staff     554 2021-06-12 00:54 torch_fidelity-0.3.0/LICENSE.md
-rw-r--r-- anton/staff    1828 2021-06-15 22:53 torch_fidelity-0.3.0/PKG-INFO
-rw------- anton/staff    6501 2021-06-15 22:46 torch_fidelity-0.3.0/README.md
-rw-r--r-- anton/staff      38 2021-06-15 22:53 torch_fidelity-0.3.0/setup.cfg
-rw-r--r-- anton/staff    2440 2021-06-12 00:54 torch_fidelity-0.3.0/setup.py
drwxr-xr-x anton/staff       0 2021-06-15 22:53 torch_fidelity-0.3.0/torch_fidelity/
-rw-r--r-- anton/staff    1094 2021-06-12 00:54 torch_fidelity-0.3.0/torch_fidelity/__init__.py
-rw-r--r-- anton/staff    2007 2021-06-12 00:54 torch_fidelity-0.3.0/torch_fidelity/datasets.py
-rw-r--r-- anton/staff    1460 2021-06-12 00:54 torch_fidelity-0.3.0/torch_fidelity/defaults.py
-rw-r--r-- anton/staff    2243 2021-06-14 18:32 torch_fidelity-0.3.0/torch_fidelity/feature_extractor_base.py
-rw-r--r-- anton/staff   16856 2021-06-14 20:17 torch_fidelity-0.3.0/torch_fidelity/feature_extractor_inceptionv3.py
-rw-r--r-- anton/staff   12071 2021-06-12 00:54 torch_fidelity-0.3.0/torch_fidelity/fidelity.py
-rw-r--r-- anton/staff     892 2021-06-14 18:17 torch_fidelity-0.3.0/torch_fidelity/generative_model_base.py
-rw-r--r-- anton/staff    2663 2021-06-14 18:33 torch_fidelity-0.3.0/torch_fidelity/generative_model_modulewrapper.py
-rw-r--r-- anton/staff    4005 2021-06-14 20:33 torch_fidelity-0.3.0/torch_fidelity/generative_model_onnx.py
-rw------- anton/staff     523 2020-12-29 19:23 torch_fidelity-0.3.0/torch_fidelity/helpers.py
-rw-r--r-- anton/staff    6370 2021-06-12 00:54 torch_fidelity-0.3.0/torch_fidelity/interpolate_compat_tensorflow.py
-rw-r--r-- anton/staff    5038 2021-06-12 00:54 torch_fidelity-0.3.0/torch_fidelity/metric_fid.py
-rw-r--r-- anton/staff    2206 2021-06-12 00:54 torch_fidelity-0.3.0/torch_fidelity/metric_isc.py
-rw-r--r-- anton/staff    5004 2021-06-12 00:54 torch_fidelity-0.3.0/torch_fidelity/metric_kid.py
-rw-r--r-- anton/staff    6033 2021-06-12 00:54 torch_fidelity-0.3.0/torch_fidelity/metric_ppl.py
-rw------- anton/staff   13752 2021-06-14 20:39 torch_fidelity-0.3.0/torch_fidelity/metrics.py
-rw-r--r-- anton/staff    1403 2021-06-12 00:54 torch_fidelity-0.3.0/torch_fidelity/noise.py
-rw------- anton/staff    6797 2021-06-14 20:18 torch_fidelity-0.3.0/torch_fidelity/registry.py
-rw-r--r-- anton/staff     798 2021-06-14 20:17 torch_fidelity-0.3.0/torch_fidelity/sample_similarity_base.py
-rw-r--r-- anton/staff    7415 2021-06-14 20:17 torch_fidelity-0.3.0/torch_fidelity/sample_similarity_lpips.py
-rw-r--r-- anton/staff   15367 2021-06-12 00:54 torch_fidelity-0.3.0/torch_fidelity/utils.py
-rw-r--r-- anton/staff      22 2021-06-15 22:23 torch_fidelity-0.3.0/torch_fidelity/version.py
drwxr-xr-x anton/staff       0 2021-06-15 22:53 torch_fidelity-0.3.0/torch_fidelity.egg-info/
-rw-r--r-- anton/staff    1828 2021-06-15 22:53 torch_fidelity-0.3.0/torch_fidelity.egg-info/PKG-INFO
-rw-r--r-- anton/staff     985 2021-06-15 22:53 torch_fidelity-0.3.0/torch_fidelity.egg-info/SOURCES.txt
-rw-r--r-- anton/staff       1 2021-06-15 22:53 torch_fidelity-0.3.0/torch_fidelity.egg-info/dependency_links.txt
-rw-r--r-- anton/staff      59 2021-06-15 22:53 torch_fidelity-0.3.0/torch_fidelity.egg-info/entry_points.txt
-rw-r--r-- anton/staff      42 2021-06-15 22:53 torch_fidelity-0.3.0/torch_fidelity.egg-info/requires.txt
-rw-r--r-- anton/staff      15 2021-06-15 22:53 torch_fidelity-0.3.0/torch_fidelity.egg-info/top_level.txt

No requirements.txt. However, https://github.com/toshas/torch-fidelity/blob/master/setup.py#L10

with open('requirements.txt') as f:

It will make this program broken when it is installing.

toshas commented 1 year ago

Thanks, will be accounted for in the coming release