konfai 1.2.3__tar.gz → 1.2.4__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.

Potentially problematic release.


This version of konfai might be problematic. Click here for more details.

Files changed (45) hide show
  1. {konfai-1.2.3 → konfai-1.2.4}/PKG-INFO +1 -1
  2. {konfai-1.2.3 → konfai-1.2.4}/konfai/data/data_manager.py +2 -3
  3. {konfai-1.2.3 → konfai-1.2.4}/konfai/predictor.py +0 -1
  4. {konfai-1.2.3 → konfai-1.2.4}/konfai/trainer.py +0 -1
  5. {konfai-1.2.3 → konfai-1.2.4}/konfai.egg-info/PKG-INFO +1 -1
  6. {konfai-1.2.3 → konfai-1.2.4}/pyproject.toml +1 -1
  7. {konfai-1.2.3 → konfai-1.2.4}/LICENSE +0 -0
  8. {konfai-1.2.3 → konfai-1.2.4}/README.md +0 -0
  9. {konfai-1.2.3 → konfai-1.2.4}/konfai/__init__.py +0 -0
  10. {konfai-1.2.3 → konfai-1.2.4}/konfai/data/__init__.py +0 -0
  11. {konfai-1.2.3 → konfai-1.2.4}/konfai/data/augmentation.py +0 -0
  12. {konfai-1.2.3 → konfai-1.2.4}/konfai/data/patching.py +0 -0
  13. {konfai-1.2.3 → konfai-1.2.4}/konfai/data/transform.py +0 -0
  14. {konfai-1.2.3 → konfai-1.2.4}/konfai/evaluator.py +0 -0
  15. {konfai-1.2.3 → konfai-1.2.4}/konfai/main.py +0 -0
  16. {konfai-1.2.3 → konfai-1.2.4}/konfai/metric/__init__.py +0 -0
  17. {konfai-1.2.3 → konfai-1.2.4}/konfai/metric/measure.py +0 -0
  18. {konfai-1.2.3 → konfai-1.2.4}/konfai/metric/schedulers.py +0 -0
  19. {konfai-1.2.3 → konfai-1.2.4}/konfai/models/classification/convNeXt.py +0 -0
  20. {konfai-1.2.3 → konfai-1.2.4}/konfai/models/classification/resnet.py +0 -0
  21. {konfai-1.2.3 → konfai-1.2.4}/konfai/models/generation/cStyleGan.py +0 -0
  22. {konfai-1.2.3 → konfai-1.2.4}/konfai/models/generation/ddpm.py +0 -0
  23. {konfai-1.2.3 → konfai-1.2.4}/konfai/models/generation/diffusionGan.py +0 -0
  24. {konfai-1.2.3 → konfai-1.2.4}/konfai/models/generation/gan.py +0 -0
  25. {konfai-1.2.3 → konfai-1.2.4}/konfai/models/generation/vae.py +0 -0
  26. {konfai-1.2.3 → konfai-1.2.4}/konfai/models/registration/registration.py +0 -0
  27. {konfai-1.2.3 → konfai-1.2.4}/konfai/models/representation/representation.py +0 -0
  28. {konfai-1.2.3 → konfai-1.2.4}/konfai/models/segmentation/NestedUNet.py +0 -0
  29. {konfai-1.2.3 → konfai-1.2.4}/konfai/models/segmentation/UNet.py +0 -0
  30. {konfai-1.2.3 → konfai-1.2.4}/konfai/network/__init__.py +0 -0
  31. {konfai-1.2.3 → konfai-1.2.4}/konfai/network/blocks.py +0 -0
  32. {konfai-1.2.3 → konfai-1.2.4}/konfai/network/network.py +0 -0
  33. {konfai-1.2.3 → konfai-1.2.4}/konfai/utils/ITK.py +0 -0
  34. {konfai-1.2.3 → konfai-1.2.4}/konfai/utils/__init__.py +0 -0
  35. {konfai-1.2.3 → konfai-1.2.4}/konfai/utils/config.py +0 -0
  36. {konfai-1.2.3 → konfai-1.2.4}/konfai/utils/dataset.py +0 -0
  37. {konfai-1.2.3 → konfai-1.2.4}/konfai/utils/utils.py +0 -0
  38. {konfai-1.2.3 → konfai-1.2.4}/konfai.egg-info/SOURCES.txt +0 -0
  39. {konfai-1.2.3 → konfai-1.2.4}/konfai.egg-info/dependency_links.txt +0 -0
  40. {konfai-1.2.3 → konfai-1.2.4}/konfai.egg-info/entry_points.txt +0 -0
  41. {konfai-1.2.3 → konfai-1.2.4}/konfai.egg-info/requires.txt +0 -0
  42. {konfai-1.2.3 → konfai-1.2.4}/konfai.egg-info/top_level.txt +0 -0
  43. {konfai-1.2.3 → konfai-1.2.4}/setup.cfg +0 -0
  44. {konfai-1.2.3 → konfai-1.2.4}/tests/test_config.py +0 -0
  45. {konfai-1.2.3 → konfai-1.2.4}/tests/test_dataset.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: konfai
3
- Version: 1.2.3
3
+ Version: 1.2.4
4
4
  Summary: Modular and configurable Deep Learning framework with YAML and PyTorch
5
5
  Author-email: Valentin Boussot <boussot.v@gmail.com>
6
6
  License-Expression: Apache-2.0
@@ -317,7 +317,6 @@ class Subset:
317
317
  else:
318
318
  index_set = index_set.intersection(set(self._get_index(s, names)))
319
319
  index = list(index_set)
320
- print(index)
321
320
  else:
322
321
  index = self._get_index(self.subset, names)
323
322
  if self.shuffle:
@@ -380,8 +379,8 @@ class Data(ABC):
380
379
  use_cache=use_cache,
381
380
  )
382
381
  self.dataLoader_args = {
383
- "num_workers": int(os.environ["KONFAI_WORKERS"]) if use_cache else 0,
384
- "pin_memory": True,
382
+ "num_workers": 0,
383
+ "pin_memory": False,
385
384
  }
386
385
  self.data: list[list[dict[str, list[DatasetManager]]]] = []
387
386
  self.mapping: list[list[list[tuple[int, int, int]]]] = []
@@ -407,7 +407,6 @@ class _Predictor:
407
407
  """
408
408
 
409
409
  self.model_composite.eval()
410
- self.model_composite.to(torch.float32)
411
410
  self.model_composite.module.set_state(NetState.PREDICTION)
412
411
  self.dataloader_prediction.dataset.load("Prediction")
413
412
  with tqdm.tqdm(
@@ -632,7 +632,6 @@ class Trainer(DistributedObject):
632
632
  world_size (int): Total number of distributed processes.
633
633
  """
634
634
  state = State[konfai_state()]
635
- print(checkpoints_directory() + self.name + "/")
636
635
  if state != State.RESUME and os.path.exists(checkpoints_directory() + self.name + "/"):
637
636
  if os.environ["KONFAI_OVERWRITE"] != "True":
638
637
  accept = input(f"The model {self.name} already exists ! Do you want to overwrite it (yes,no) : ")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: konfai
3
- Version: 1.2.3
3
+ Version: 1.2.4
4
4
  Summary: Modular and configurable Deep Learning framework with YAML and PyTorch
5
5
  Author-email: Valentin Boussot <boussot.v@gmail.com>
6
6
  License-Expression: Apache-2.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "konfai"
7
- version = "1.2.3"
7
+ version = "1.2.4"
8
8
  description = "Modular and configurable Deep Learning framework with YAML and PyTorch"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
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