meg HF Staff commited on
Commit
ee81159
·
verified ·
1 Parent(s): 09be522

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: ImageNetTraining20.0-frac-1over2
3
  emoji: 😻
4
  colorFrom: yellow
5
  colorTo: blue
@@ -10,4 +10,4 @@ startup_duration_timeout: 5h
10
  hf_oauth_expiration_minutes: 1440
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: ImageNetTraining10.0-frac-1over64
3
  emoji: 😻
4
  colorFrom: yellow
5
  colorTo: blue
 
10
  hf_oauth_expiration_minutes: 1440
11
  ---
12
 
13
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
__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
@@ -20,19 +20,28 @@ def start_train():
20
  os.system("pwd")
21
  os.system("echo ls")
22
  os.system("ls")
 
23
  os.system("echo 'Creating results output repository in case it does not exist yet...'")
24
  try:
25
  API.create_repo(repo_id=f"{experiment_name}", repo_type="dataset",)
26
  os.system(f"echo 'Created results output repository {experiment_name}'")
27
  except:
28
  pass
29
- # Handles CUDA OOM errors.
30
- os.system(f"export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True")
31
- os.system("echo 'Okay, trying training.'")
32
- os.system(f"cd pytorch-image-models; ./train.sh 4 --dataset hfds/datacomp/imagenet-1k-random{random_num}-{subset} --log-wandb --experiment {experiment_name} --model seresnet34 --sched cosine --epochs 150 --warmup-epochs 5 --lr 0.4 --reprob 0.5 --remode pixel --batch-size 256 --amp -j 4")
33
- os.system("echo 'Done'.")
34
- os.system("ls")
35
- os.system("echo 'trying to upload...'")
36
- API.upload_folder(folder_path="/app", repo_id=f"{experiment_name}", repo_type="dataset",)
37
- API.pause_space(experiment_name)
 
 
 
 
 
 
 
 
38
  return {"Completed": "!"}
 
20
  os.system("pwd")
21
  os.system("echo ls")
22
  os.system("ls")
23
+ # Create a place to put the output.
24
  os.system("echo 'Creating results output repository in case it does not exist yet...'")
25
  try:
26
  API.create_repo(repo_id=f"{experiment_name}", repo_type="dataset",)
27
  os.system(f"echo 'Created results output repository {experiment_name}'")
28
  except:
29
  pass
30
+ # Mark that training is happening so any refresh of the Space doesn't start training again.
31
+ space_variables = API.get_space_variables(repo_id=experiment_name)
32
+ if 'STATUS' not in space_variables or space_variables['STATUS'] != 'COMPUTING':
33
+ os.system("echo 'Beginning processing.'")
34
+ API.add_space_variable(repo_id=experiment_name, key='STATUS', value='COMPUTING')
35
+ # Handles CUDA OOM errors.
36
+ os.system(f"export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True")
37
+ os.system("echo 'Okay, trying training.'")
38
+ os.system(f"cd pytorch-image-models; ./train.sh 4 --dataset hfds/datacomp/imagenet-1k-random-{random_num}-{subset} --log-wandb --experiment {experiment_name} --model seresnet34 --sched cosine --epochs 150 --warmup-epochs 5 --lr 0.4 --reprob 0.5 --remode pixel --batch-size 256 --amp -j 4")
39
+ os.system("echo 'Done'.")
40
+ # Mark that we're not computing anymore
41
+ API.add_space_variable(repo_id=experiment_name, key='STATUS', value='NOT_COMPUTING')
42
+ os.system("ls")
43
+ # Upload output to repository
44
+ os.system("echo 'trying to upload...'")
45
+ API.upload_folder(folder_path="/app", repo_id=f"{experiment_name}", repo_type="dataset",)
46
+ API.pause_space(experiment_name)
47
  return {"Completed": "!"}
pytorch-image-models/output/train/datacomp/ImageNetTraining10.0-frac-1over64/args.yaml ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aa: null
2
+ amp: true
3
+ amp_dtype: float16
4
+ amp_impl: native
5
+ aug_repeats: 0
6
+ aug_splits: 0
7
+ batch_size: 256
8
+ bce_loss: false
9
+ bce_pos_weight: null
10
+ bce_sum: false
11
+ bce_target_thresh: null
12
+ bn_eps: null
13
+ bn_momentum: null
14
+ channels_last: false
15
+ checkpoint_hist: 10
16
+ class_map: ''
17
+ clip_grad: null
18
+ clip_mode: norm
19
+ color_jitter: 0.4
20
+ color_jitter_prob: null
21
+ cooldown_epochs: 0
22
+ crop_pct: null
23
+ cutmix: 0.0
24
+ cutmix_minmax: null
25
+ data: null
26
+ data_dir: null
27
+ dataset: hfds/datacomp/imagenet-1k-random-10.0-frac-1over64
28
+ dataset_download: false
29
+ dataset_trust_remote_code: false
30
+ decay_epochs: 90
31
+ decay_milestones:
32
+ - 90
33
+ - 180
34
+ - 270
35
+ decay_rate: 0.1
36
+ device: cuda
37
+ device_modules: null
38
+ dist_bn: reduce
39
+ drop: 0.0
40
+ drop_block: null
41
+ drop_connect: null
42
+ drop_path: null
43
+ epoch_repeats: 0.0
44
+ epochs: 150
45
+ eval_metric: top1
46
+ experiment: datacomp/ImageNetTraining10.0-frac-1over64
47
+ fast_norm: false
48
+ fuser: ''
49
+ gaussian_blur_prob: null
50
+ gp: null
51
+ grad_accum_steps: 1
52
+ grad_checkpointing: false
53
+ grayscale_prob: null
54
+ head_init_bias: null
55
+ head_init_scale: null
56
+ hflip: 0.5
57
+ img_size: null
58
+ in_chans: null
59
+ initial_checkpoint: ''
60
+ input_img_mode: null
61
+ input_key: null
62
+ input_size: null
63
+ interpolation: ''
64
+ jsd_loss: false
65
+ layer_decay: null
66
+ local_rank: 0
67
+ log_interval: 50
68
+ log_wandb: true
69
+ lr: 0.4
70
+ lr_base: 0.1
71
+ lr_base_scale: ''
72
+ lr_base_size: 256
73
+ lr_cycle_decay: 0.5
74
+ lr_cycle_limit: 1
75
+ lr_cycle_mul: 1.0
76
+ lr_k_decay: 1.0
77
+ lr_noise: null
78
+ lr_noise_pct: 0.67
79
+ lr_noise_std: 1.0
80
+ mean: null
81
+ min_lr: 0
82
+ mixup: 0.0
83
+ mixup_mode: batch
84
+ mixup_off_epoch: 0
85
+ mixup_prob: 1.0
86
+ mixup_switch_prob: 0.5
87
+ model: seresnet34
88
+ model_dtype: null
89
+ model_ema: false
90
+ model_ema_decay: 0.9998
91
+ model_ema_force_cpu: false
92
+ model_ema_warmup: false
93
+ model_kwargs: {}
94
+ momentum: 0.9
95
+ no_aug: false
96
+ no_ddp_bb: false
97
+ no_prefetcher: false
98
+ no_resume_opt: false
99
+ num_classes: null
100
+ opt: sgd
101
+ opt_betas: null
102
+ opt_eps: null
103
+ opt_kwargs: {}
104
+ output: ''
105
+ patience_epochs: 10
106
+ pin_mem: false
107
+ pretrained: false
108
+ pretrained_path: null
109
+ ratio:
110
+ - 0.75
111
+ - 1.3333333333333333
112
+ recount: 1
113
+ recovery_interval: 0
114
+ remode: pixel
115
+ reprob: 0.5
116
+ resplit: false
117
+ resume: ''
118
+ save_images: false
119
+ scale:
120
+ - 0.08
121
+ - 1.0
122
+ sched: cosine
123
+ sched_on_updates: false
124
+ seed: 42
125
+ smoothing: 0.1
126
+ split_bn: false
127
+ start_epoch: null
128
+ std: null
129
+ sync_bn: false
130
+ synchronize_step: false
131
+ target_key: null
132
+ torchcompile: null
133
+ torchcompile_mode: null
134
+ torchscript: false
135
+ train_crop_mode: null
136
+ train_interpolation: random
137
+ train_num_samples: null
138
+ train_split: train
139
+ tta: 0
140
+ use_multi_epochs_loader: false
141
+ val_num_samples: null
142
+ val_split: validation
143
+ validation_batch_size: null
144
+ vflip: 0.0
145
+ wandb_resume_id: ''
146
+ wandb_tags: []
147
+ warmup_epochs: 5
148
+ warmup_lr: 1.0e-05
149
+ warmup_prefix: false
150
+ weight_decay: 2.0e-05
151
+ worker_seeding: all
152
+ workers: 4
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/models/__pycache__/_pretrained.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/models/__pycache__/_pretrained.cpython-39.pyc and b/pytorch-image-models/timm/models/__pycache__/_pretrained.cpython-39.pyc differ
 
pytorch-image-models/timm/models/__pycache__/vision_transformer.cpython-39.pyc CHANGED
Binary files a/pytorch-image-models/timm/models/__pycache__/vision_transformer.cpython-39.pyc and b/pytorch-image-models/timm/models/__pycache__/vision_transformer.cpython-39.pyc differ