tensorneko 0.3.18__tar.gz → 0.3.20__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.
- {tensorneko-0.3.18 → tensorneko-0.3.20}/PKG-INFO +2 -2
- {tensorneko-0.3.18 → tensorneko-0.3.20}/README.md +1 -1
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/neko_model.py +3 -3
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/util/__init__.py +4 -2
- tensorneko-0.3.20/src/tensorneko/version.txt +1 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko.egg-info/PKG-INFO +2 -2
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko.egg-info/requires.txt +2 -2
- tensorneko-0.3.18/src/tensorneko/version.txt +0 -1
- {tensorneko-0.3.18 → tensorneko-0.3.20}/setup.cfg +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/setup.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/arch/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/arch/auto_encoder.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/arch/binary_classifier.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/arch/gan.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/arch/vqvae.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/arch/wgan.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/backend/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/callback/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/callback/display_metrics_callback.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/callback/earlystop_lr.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/callback/epoch_num_logger.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/callback/epoch_time_logger.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/callback/gpu_stats_logger.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/callback/lr_logger.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/callback/nil_callback.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/callback/system_stats_logger.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/dataset/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/dataset/list_dataset.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/dataset/nested_dataset.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/dataset/round_robin_dataset.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/dataset/sampler/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/dataset/sampler/sequential_iter_sampler.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/debug/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/evaluation/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/evaluation/enum.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/evaluation/fid.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/evaluation/iou.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/evaluation/psnr.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/evaluation/secs.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/evaluation/ssim.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/io/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/io/mesh/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/io/mesh/mesh_reader.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/io/mesh/mesh_writer.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/io/reader.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/io/weight/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/io/weight/weight_reader.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/io/weight/weight_writer.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/io/writer.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/aggregation.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/attention.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/concatenate.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/conv.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/linear.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/log.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/masked_conv2d.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/noise.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/patching.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/positional_embedding.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/reshape.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/stack.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/layer/vector_quantizer.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/module/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/module/dense.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/module/gated_conv.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/module/inception.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/module/mlp.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/module/residual.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/module/transformer.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/msg/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/neko_module.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/neko_trainer.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/notebook/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/optim/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/optim/lr_scheduler/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/preprocess/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/preprocess/crop.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/preprocess/enum.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/preprocess/face_detector/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/preprocess/pad.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/preprocess/resize.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/util/configuration.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/util/dispatched_misc.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/util/gc.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/util/misc.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/util/reproducibility.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/util/string_getter.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/util/type.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/visualization/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/visualization/image_browser/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/visualization/log_graph.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/visualization/matplotlib.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/visualization/watcher/__init__.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko.egg-info/SOURCES.txt +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko.egg-info/dependency_links.txt +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko.egg-info/top_level.txt +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/test/test_library_info.py +0 -0
- {tensorneko-0.3.18 → tensorneko-0.3.20}/test/test_version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tensorneko
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.20
|
|
4
4
|
Summary: Tensor Neural Engine Kompanion. An util library based on PyTorch and PyTorch Lightning.
|
|
5
5
|
Home-page: https://github.com/ControlNet/tensorneko
|
|
6
6
|
Author: ControlNet
|
|
@@ -22,7 +22,7 @@ Description: <h1 style="text-align: center">TensorNeko</h1>
|
|
|
22
22
|
<div align="center">
|
|
23
23
|
<a href="https://www.python.org/"><img src="https://img.shields.io/pypi/pyversions/tensorneko?style=flat-square"></a>
|
|
24
24
|
<a href="https://pytorch.org/"><img src="https://img.shields.io/badge/PyTorch-%3E%3D1.9.0-EE4C2C?style=flat-square&logo=pytorch"></a>
|
|
25
|
-
<a href="https://www.pytorchlightning.ai/"><img src="https://img.shields.io/badge/Lightning-2
|
|
25
|
+
<a href="https://www.pytorchlightning.ai/"><img src="https://img.shields.io/badge/Lightning-2.*-792EE5?style=flat-square&logo=lightning"></a>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
28
|
<div align="center">
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<div align="center">
|
|
13
13
|
<a href="https://www.python.org/"><img src="https://img.shields.io/pypi/pyversions/tensorneko?style=flat-square"></a>
|
|
14
14
|
<a href="https://pytorch.org/"><img src="https://img.shields.io/badge/PyTorch-%3E%3D1.9.0-EE4C2C?style=flat-square&logo=pytorch"></a>
|
|
15
|
-
<a href="https://www.pytorchlightning.ai/"><img src="https://img.shields.io/badge/Lightning-2
|
|
15
|
+
<a href="https://www.pytorchlightning.ai/"><img src="https://img.shields.io/badge/Lightning-2.*-792EE5?style=flat-square&logo=lightning"></a>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<div align="center">
|
|
@@ -214,12 +214,12 @@ class NekoModel(LightningModule, NekoModule):
|
|
|
214
214
|
for key in outputs[0].keys():
|
|
215
215
|
getter = summarize_dict_by(key, torch.mean)
|
|
216
216
|
value = getter(outputs)
|
|
217
|
-
self.history[-1]["val_" + key] = value
|
|
217
|
+
self.history[-1]["val_" + key.split("/")[-1]] = value
|
|
218
218
|
if self.logger is not None:
|
|
219
219
|
self.logger.log_metrics({key: value}, step=self.trainer.global_step)
|
|
220
220
|
self.log(key, value, on_epoch=True, on_step=False, logger=False, sync_dist=self.distributed)
|
|
221
|
-
self.log(f"val_{key}", value, on_epoch=True, on_step=False, logger=False,
|
|
222
|
-
sync_dist=self.distributed)
|
|
221
|
+
self.log(f"val_{key.split('/')[-1]}", value, on_epoch=True, on_step=False, logger=False,
|
|
222
|
+
prog_bar=True, sync_dist=self.distributed)
|
|
223
223
|
|
|
224
224
|
def log_on_training_step_end(self, output: STEP_OUTPUT) -> None:
|
|
225
225
|
"""Log the training step outputs"""
|
|
@@ -4,7 +4,8 @@ from tensorneko_util.util import dispatch, AverageMeter, tensorneko_util_path
|
|
|
4
4
|
from tensorneko_util.util.fp import Seq, AbstractSeq, curry, F, Stream, return_option, Option, Monad, Eval, _, __
|
|
5
5
|
from tensorneko_util.util import ref, Timer, Singleton
|
|
6
6
|
from tensorneko_util.util.eventbus import Event, EventBus, EventHandler, subscribe
|
|
7
|
-
from tensorneko_util.util import download_file, download_file_thread, download_files_thread, WindowMerger, Registry
|
|
7
|
+
from tensorneko_util.util import download_file, download_file_thread, download_files_thread, WindowMerger, Registry, \
|
|
8
|
+
MultiLayerIndexer
|
|
8
9
|
from . import type
|
|
9
10
|
from .configuration import Configuration
|
|
10
11
|
from .misc import reduce_dict_by, summarize_dict_by, with_printed_shape, is_bad_num, count_parameters, compose, \
|
|
@@ -78,5 +79,6 @@ __all__ = [
|
|
|
78
79
|
"download_files_thread",
|
|
79
80
|
"WindowMerger",
|
|
80
81
|
"Registry",
|
|
81
|
-
"run_gc"
|
|
82
|
+
"run_gc",
|
|
83
|
+
"MultiLayerIndexer"
|
|
82
84
|
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.3.20
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tensorneko
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.20
|
|
4
4
|
Summary: Tensor Neural Engine Kompanion. An util library based on PyTorch and PyTorch Lightning.
|
|
5
5
|
Home-page: https://github.com/ControlNet/tensorneko
|
|
6
6
|
Author: ControlNet
|
|
@@ -22,7 +22,7 @@ Description: <h1 style="text-align: center">TensorNeko</h1>
|
|
|
22
22
|
<div align="center">
|
|
23
23
|
<a href="https://www.python.org/"><img src="https://img.shields.io/pypi/pyversions/tensorneko?style=flat-square"></a>
|
|
24
24
|
<a href="https://pytorch.org/"><img src="https://img.shields.io/badge/PyTorch-%3E%3D1.9.0-EE4C2C?style=flat-square&logo=pytorch"></a>
|
|
25
|
-
<a href="https://www.pytorchlightning.ai/"><img src="https://img.shields.io/badge/Lightning-2
|
|
25
|
+
<a href="https://www.pytorchlightning.ai/"><img src="https://img.shields.io/badge/Lightning-2.*-792EE5?style=flat-square&logo=lightning"></a>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
28
|
<div align="center">
|
|
@@ -2,7 +2,7 @@ av>=8.0.3
|
|
|
2
2
|
einops>=0.3.0
|
|
3
3
|
numpy>=1.20.1
|
|
4
4
|
pillow>=8.1
|
|
5
|
-
tensorneko_util==0.3.
|
|
5
|
+
tensorneko_util==0.3.20
|
|
6
6
|
torch>=1.9.0
|
|
7
7
|
torchaudio>=0.9.0
|
|
8
8
|
torchmetrics>=0.7.3
|
|
@@ -12,5 +12,5 @@ torchvision>=0.10.0
|
|
|
12
12
|
pysoundfile>=0.9.0
|
|
13
13
|
|
|
14
14
|
[lightning]
|
|
15
|
-
lightning<2.
|
|
15
|
+
lightning<2.5,>=2.0
|
|
16
16
|
tensorboard>=2.0.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.3.18
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/dataset/sampler/sequential_iter_sampler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tensorneko-0.3.18 → tensorneko-0.3.20}/src/tensorneko/visualization/image_browser/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|