konfai 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl

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.

konfai/main.py CHANGED
@@ -2,7 +2,6 @@ import argparse
2
2
  import os
3
3
  from torch.cuda import device_count
4
4
  import torch.multiprocessing as mp
5
- import submitit
6
5
  from konfai.utils.utils import setupAPI, TensorBoard, Log
7
6
 
8
7
  def main():
@@ -36,7 +35,7 @@ def cluster():
36
35
 
37
36
  n_gpu = len(config["gpu"].split(","))
38
37
  distributedObject.setup(n_gpu*int(config["num_nodes"]))
39
-
38
+ import submitit
40
39
  executor = submitit.AutoExecutor(folder="./Cluster/")
41
40
  executor.update_parameters(name=config["name"], mem_gb=config["memory"], gpus_per_node=n_gpu, tasks_per_node=n_gpu//distributedObject.size, cpus_per_task=config["num_workers"], nodes=config["num_nodes"], timeout_min=config["time_limit"])
42
41
  with TensorBoard(distributedObject.name):
konfai/utils/utils.py CHANGED
@@ -429,7 +429,6 @@ def setupAPI(parser: argparse.ArgumentParser) -> DistributedObject:
429
429
  os.environ["DEEP_LEARNING_API_ROOT"] = "Trainer"
430
430
  return Trainer(config=CONFIG_FILE())
431
431
 
432
- import submitit
433
432
 
434
433
  def setupGPU(world_size: int, port: int, rank: Union[int, None] = None) -> tuple[int , int]:
435
434
  try:
@@ -437,6 +436,7 @@ def setupGPU(world_size: int, port: int, rank: Union[int, None] = None) -> tuple
437
436
  except:
438
437
  host_name = "localhost"
439
438
  if rank is None:
439
+ import submitit
440
440
  job_env = submitit.JobEnvironment()
441
441
  global_rank = job_env.global_rank
442
442
  local_rank = job_env.local_rank
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: konfai
3
- Version: 1.0.0
3
+ Version: 1.0.1
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
@@ -1,6 +1,6 @@
1
1
  konfai/__init__.py,sha256=jXMTNml38eX6FSq9d3C_gJVgRLTKHPBUXqOLC7Pqkuo,828
2
2
  konfai/evaluator.py,sha256=6YU3bXBy1YcS2kl0YwebkgwXYeO_VoBN59-MLMqj-ds,7468
3
- konfai/main.py,sha256=Y-8vTgHVecMglB8krGKLbBoFlcoo-Oa4l-PjTDhBzbM,2142
3
+ konfai/main.py,sha256=voh5P5UUY0vjBOsd79O23cVK2LR8WH4c_8ep-kI967E,2149
4
4
  konfai/predictor.py,sha256=IOh70fCVm8q-sgZyACNperTO-Vel8QKvYp-FoBY39ao,20236
5
5
  konfai/trainer.py,sha256=zGvXd2skcqWgRN9GLx93xYB4Bv-46C0oo7J9My4Levk,16901
6
6
  konfai/data/HDF5.py,sha256=QfU8VnyslkQhT_k2AJNFMNkJK7lm75ozxT4WELZt8wk,14390
@@ -30,10 +30,10 @@ konfai/utils/Registration.py,sha256=v1srEBOcgDnHrx0YtsK6bcj0yCMH7wNeaQ3wC7gEvOw,
30
30
  konfai/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  konfai/utils/config.py,sha256=4NkR1BWXxwtsf95G_xH9_t-pe2unmbRvxzyKCIuS6eE,9894
32
32
  konfai/utils/dataset.py,sha256=PNmzxaeFGMBh-pAaR92tDresDjF0QXSli2eGNJyzSVQ,35465
33
- konfai/utils/utils.py,sha256=BCH7nwDf_Aqt_5lDieBCUEI0HE5TlinG4Z96EOAwA94,20206
34
- konfai-1.0.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
35
- konfai-1.0.0.dist-info/METADATA,sha256=flcowFH9PD-G7CYRMjBtpX2Dy-XLTY2mCXPfSUL5kAM,1971
36
- konfai-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
- konfai-1.0.0.dist-info/entry_points.txt,sha256=fG82HRN5-g39ACSOCtij_I3N6EHxfYnMR0D7TI_8pW8,81
38
- konfai-1.0.0.dist-info/top_level.txt,sha256=xF470dkIlFoFqTZEOlRehKJr4WU_8OKGXrJqYm9vWKs,7
39
- konfai-1.0.0.dist-info/RECORD,,
33
+ konfai/utils/utils.py,sha256=hI30DzbpLRRXHyVMW4Kk_2kQo5e-DJ417evGUsCWjXA,20214
34
+ konfai-1.0.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
35
+ konfai-1.0.1.dist-info/METADATA,sha256=h1YcCYJ30Bd5oq2LV_78Yz6aJjPKdqd3GDUGyKxGW2M,1971
36
+ konfai-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
+ konfai-1.0.1.dist-info/entry_points.txt,sha256=fG82HRN5-g39ACSOCtij_I3N6EHxfYnMR0D7TI_8pW8,81
38
+ konfai-1.0.1.dist-info/top_level.txt,sha256=xF470dkIlFoFqTZEOlRehKJr4WU_8OKGXrJqYm9vWKs,7
39
+ konfai-1.0.1.dist-info/RECORD,,
File without changes