meg HF staff commited on
Commit
71d95a5
·
verified ·
1 Parent(s): e86b2b7

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. __pycache__/app.cpython-39.pyc +0 -0
  2. app.py +14 -15
  3. pytorch-image-models/timm/__pycache__/__init__.cpython-39.pyc +0 -0
  4. pytorch-image-models/timm/__pycache__/version.cpython-39.pyc +0 -0
  5. pytorch-image-models/timm/data/__pycache__/__init__.cpython-39.pyc +0 -0
  6. pytorch-image-models/timm/data/__pycache__/auto_augment.cpython-39.pyc +0 -0
  7. pytorch-image-models/timm/data/__pycache__/config.cpython-39.pyc +0 -0
  8. pytorch-image-models/timm/data/__pycache__/constants.cpython-39.pyc +0 -0
  9. pytorch-image-models/timm/data/__pycache__/dataset.cpython-39.pyc +0 -0
  10. pytorch-image-models/timm/data/__pycache__/dataset_factory.cpython-39.pyc +0 -0
  11. pytorch-image-models/timm/data/__pycache__/dataset_info.cpython-39.pyc +0 -0
  12. pytorch-image-models/timm/data/__pycache__/distributed_sampler.cpython-39.pyc +0 -0
  13. pytorch-image-models/timm/data/__pycache__/imagenet_info.cpython-39.pyc +0 -0
  14. pytorch-image-models/timm/data/__pycache__/loader.cpython-39.pyc +0 -0
  15. pytorch-image-models/timm/data/__pycache__/mixup.cpython-39.pyc +0 -0
  16. pytorch-image-models/timm/data/__pycache__/random_erasing.cpython-39.pyc +0 -0
  17. pytorch-image-models/timm/data/__pycache__/real_labels.cpython-39.pyc +0 -0
  18. pytorch-image-models/timm/data/__pycache__/transforms.cpython-39.pyc +0 -0
  19. pytorch-image-models/timm/data/__pycache__/transforms_factory.cpython-39.pyc +0 -0
  20. pytorch-image-models/timm/data/readers/__pycache__/__init__.cpython-39.pyc +0 -0
  21. pytorch-image-models/timm/data/readers/__pycache__/class_map.cpython-39.pyc +0 -0
  22. pytorch-image-models/timm/data/readers/__pycache__/img_extensions.cpython-39.pyc +0 -0
  23. pytorch-image-models/timm/data/readers/__pycache__/reader.cpython-39.pyc +0 -0
  24. pytorch-image-models/timm/data/readers/__pycache__/reader_factory.cpython-39.pyc +0 -0
  25. pytorch-image-models/timm/data/readers/__pycache__/reader_image_folder.cpython-39.pyc +0 -0
  26. pytorch-image-models/timm/data/readers/__pycache__/reader_image_in_tar.cpython-39.pyc +0 -0
  27. pytorch-image-models/timm/layers/__pycache__/__init__.cpython-39.pyc +0 -0
  28. pytorch-image-models/timm/layers/__pycache__/activations.cpython-39.pyc +0 -0
  29. pytorch-image-models/timm/layers/__pycache__/activations_me.cpython-39.pyc +0 -0
  30. pytorch-image-models/timm/layers/__pycache__/adaptive_avgmax_pool.cpython-39.pyc +0 -0
  31. pytorch-image-models/timm/layers/__pycache__/attention2d.cpython-39.pyc +0 -0
  32. pytorch-image-models/timm/layers/__pycache__/attention_pool.cpython-39.pyc +0 -0
  33. pytorch-image-models/timm/layers/__pycache__/attention_pool2d.cpython-39.pyc +0 -0
  34. pytorch-image-models/timm/layers/__pycache__/blur_pool.cpython-39.pyc +0 -0
  35. pytorch-image-models/timm/layers/__pycache__/bottleneck_attn.cpython-39.pyc +0 -0
  36. pytorch-image-models/timm/layers/__pycache__/cbam.cpython-39.pyc +0 -0
  37. pytorch-image-models/timm/layers/__pycache__/classifier.cpython-39.pyc +0 -0
  38. pytorch-image-models/timm/layers/__pycache__/cond_conv2d.cpython-39.pyc +0 -0
  39. pytorch-image-models/timm/layers/__pycache__/config.cpython-39.pyc +0 -0
  40. pytorch-image-models/timm/layers/__pycache__/conv2d_same.cpython-39.pyc +0 -0
  41. pytorch-image-models/timm/layers/__pycache__/conv_bn_act.cpython-39.pyc +0 -0
  42. pytorch-image-models/timm/layers/__pycache__/create_act.cpython-39.pyc +0 -0
  43. pytorch-image-models/timm/layers/__pycache__/create_attn.cpython-39.pyc +0 -0
  44. pytorch-image-models/timm/layers/__pycache__/create_conv2d.cpython-39.pyc +0 -0
  45. pytorch-image-models/timm/layers/__pycache__/create_norm.cpython-39.pyc +0 -0
  46. pytorch-image-models/timm/layers/__pycache__/create_norm_act.cpython-39.pyc +0 -0
  47. pytorch-image-models/timm/layers/__pycache__/drop.cpython-39.pyc +0 -0
  48. pytorch-image-models/timm/layers/__pycache__/eca.cpython-39.pyc +0 -0
  49. pytorch-image-models/timm/layers/__pycache__/evo_norm.cpython-39.pyc +0 -0
  50. pytorch-image-models/timm/layers/__pycache__/fast_norm.cpython-39.pyc +0 -0
__pycache__/app.cpython-39.pyc CHANGED
Binary files a/__pycache__/app.cpython-39.pyc and b/__pycache__/app.cpython-39.pyc differ
 
app.py CHANGED
@@ -16,22 +16,21 @@ app = FastAPI()
16
  def start_train():
17
  os.system("echo 'Space started!'")
18
  os.system("echo pwd")
19
- subprocess.call("pwd")
20
  os.system("echo ls")
21
- subprocess.call("ls")
22
  os.system("ls")
23
- space_variables = API.get_space_variables(repo_id=REPO_ID)
24
- if 'STATUS' not in space_variables or space_variables['STATUS'] != 'COMPUTING':
25
- os.system("echo 'Beginning processing.'")
26
- API.add_space_variable(repo_id=REPO_ID, key='STATUS', value='COMPUTING')
27
- # Handles CUDA OOM errors.
28
- os.system(f"export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True")
29
- os.system("echo 'Okay, trying training.'")
30
- os.system(f"cd pytorch-image-models; ./train.sh 4 --dataset hfds/{REPO_ID} --log-wandb --experiment {REPO_ID} --model seresnet34 --sched cosine --epochs 150 --warmup-epochs 5 --lr 0.4 --reprob 0.5 --remode pixel --batch-size 256 --amp -j 4")
31
- os.system("echo ls")
32
- os.system("ls")
33
- os.system("echo 'trying to upload...'")
34
- API.upload_folder(folder_path="/app", repo_id=f"{REPO_ID}", repo_type="dataset",)
35
- API.add_space_variable(repo_id=REPO_ID, key='STATUS', value='NOT_COMPUTING')
36
  #API.pause_space(f"{REPO_ID}")
37
  return {"Completed": "!"}
 
16
  def start_train():
17
  os.system("echo 'Space started!'")
18
  os.system("echo pwd")
19
+ os.system("pwd")
20
  os.system("echo ls")
 
21
  os.system("ls")
22
+ #space_variables = API.get_space_variables(repo_id=REPO_ID)
23
+ #if 'STATUS' not in space_variables or space_variables['STATUS'] != 'COMPUTING':
24
+ os.system("echo 'Beginning processing.'")
25
+ # API.add_space_variable(repo_id=REPO_ID, key='STATUS', value='COMPUTING')
26
+ # Handles CUDA OOM errors.
27
+ os.system(f"export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True")
28
+ os.system("echo 'Okay, trying training.'")
29
+ os.system(f"cd pytorch-image-models; ./train.sh 4 --dataset hfds/{REPO_ID} --log-wandb --experiment {REPO_ID} --model seresnet34 --sched cosine --epochs 150 --warmup-epochs 5 --lr 0.4 --reprob 0.5 --remode pixel --batch-size 256 --amp -j 4")
30
+ os.system("echo ls")
31
+ os.system("ls")
32
+ os.system("echo 'trying to upload...'")
33
+ API.upload_folder(folder_path="/app", repo_id=f"{REPO_ID}", repo_type="dataset",)
34
+ # API.add_space_variable(repo_id=REPO_ID, key='STATUS', value='NOT_COMPUTING')
35
  #API.pause_space(f"{REPO_ID}")
36
  return {"Completed": "!"}
pytorch-image-models/timm/__pycache__/__init__.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/__pycache__/__init__.cpython-39.pyc and b/pytorch-image-models/timm/__pycache__/__init__.cpython-39.pyc differ
 
pytorch-image-models/timm/__pycache__/version.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/__pycache__/version.cpython-39.pyc and b/pytorch-image-models/timm/__pycache__/version.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/__init__.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/__init__.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/__init__.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/auto_augment.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/auto_augment.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/auto_augment.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/config.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/config.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/config.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/constants.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/constants.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/constants.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/dataset.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/dataset.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/dataset.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/dataset_factory.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/dataset_factory.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/dataset_factory.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/dataset_info.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/dataset_info.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/dataset_info.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/distributed_sampler.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/distributed_sampler.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/distributed_sampler.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/imagenet_info.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/imagenet_info.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/imagenet_info.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/loader.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/loader.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/loader.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/mixup.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/mixup.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/mixup.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/random_erasing.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/random_erasing.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/random_erasing.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/real_labels.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/real_labels.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/real_labels.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/transforms.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/transforms.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/transforms.cpython-39.pyc differ
 
pytorch-image-models/timm/data/__pycache__/transforms_factory.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/__pycache__/transforms_factory.cpython-39.pyc and b/pytorch-image-models/timm/data/__pycache__/transforms_factory.cpython-39.pyc differ
 
pytorch-image-models/timm/data/readers/__pycache__/__init__.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/readers/__pycache__/__init__.cpython-39.pyc and b/pytorch-image-models/timm/data/readers/__pycache__/__init__.cpython-39.pyc differ
 
pytorch-image-models/timm/data/readers/__pycache__/class_map.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/readers/__pycache__/class_map.cpython-39.pyc and b/pytorch-image-models/timm/data/readers/__pycache__/class_map.cpython-39.pyc differ
 
pytorch-image-models/timm/data/readers/__pycache__/img_extensions.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/readers/__pycache__/img_extensions.cpython-39.pyc and b/pytorch-image-models/timm/data/readers/__pycache__/img_extensions.cpython-39.pyc differ
 
pytorch-image-models/timm/data/readers/__pycache__/reader.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/readers/__pycache__/reader.cpython-39.pyc and b/pytorch-image-models/timm/data/readers/__pycache__/reader.cpython-39.pyc differ
 
pytorch-image-models/timm/data/readers/__pycache__/reader_factory.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/readers/__pycache__/reader_factory.cpython-39.pyc and b/pytorch-image-models/timm/data/readers/__pycache__/reader_factory.cpython-39.pyc differ
 
pytorch-image-models/timm/data/readers/__pycache__/reader_image_folder.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/readers/__pycache__/reader_image_folder.cpython-39.pyc and b/pytorch-image-models/timm/data/readers/__pycache__/reader_image_folder.cpython-39.pyc differ
 
pytorch-image-models/timm/data/readers/__pycache__/reader_image_in_tar.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/data/readers/__pycache__/reader_image_in_tar.cpython-39.pyc and b/pytorch-image-models/timm/data/readers/__pycache__/reader_image_in_tar.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/__init__.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/__init__.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/__init__.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/activations.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/activations.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/activations.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/activations_me.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/activations_me.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/activations_me.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/adaptive_avgmax_pool.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/adaptive_avgmax_pool.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/adaptive_avgmax_pool.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/attention2d.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/attention2d.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/attention2d.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/attention_pool.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/attention_pool.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/attention_pool.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/attention_pool2d.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/attention_pool2d.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/attention_pool2d.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/blur_pool.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/blur_pool.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/blur_pool.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/bottleneck_attn.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/bottleneck_attn.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/bottleneck_attn.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/cbam.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/cbam.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/cbam.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/classifier.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/classifier.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/classifier.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/cond_conv2d.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/cond_conv2d.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/cond_conv2d.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/config.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/config.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/config.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/conv2d_same.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/conv2d_same.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/conv2d_same.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/conv_bn_act.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/conv_bn_act.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/conv_bn_act.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/create_act.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/create_act.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/create_act.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/create_attn.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/create_attn.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/create_attn.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/create_conv2d.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/create_conv2d.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/create_conv2d.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/create_norm.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/create_norm.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/create_norm.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/create_norm_act.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/create_norm_act.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/create_norm_act.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/drop.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/drop.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/drop.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/eca.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/eca.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/eca.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/evo_norm.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/evo_norm.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/evo_norm.cpython-39.pyc differ
 
pytorch-image-models/timm/layers/__pycache__/fast_norm.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/layers/__pycache__/fast_norm.cpython-39.pyc and b/pytorch-image-models/timm/layers/__pycache__/fast_norm.cpython-39.pyc differ