Skip to content

Commit

Permalink
updated readme and train url
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhinavTuli committed Mar 12, 2021
1 parent fd15be9 commit a5f0e3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions gradient_health/model_training/experiments/1/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ output_weights_name=weights.h5

; basic training parameters
epochs=100
batch_size=32
batch_size=8

; learning rate options
initial_learning_rate=0.001
Expand All @@ -39,7 +39,7 @@ initial_learning_rate=0.001
generator_workers=8

; target width/height of the input image (resized)
image_dimension=224
image_dimension=512

; steps per epoch for training
; auto or int
Expand Down
8 changes: 4 additions & 4 deletions gradient_health/model_training/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ def main():
config_file, os.path.join(output_dir, os.path.split(config_file)[1])
)

ds = hub.Dataset(
"s3://snark-gradient-raw-data/output_single_8_5000_samples_max_4_boolean_m5_fixed/ds3")
dsv_train = ds[0:3000]
dsv_val = ds[5000:]
ds = hub.Dataset("s3://snark-gradient-raw-data/output_single_8_all_samples_max_4_boolean_m5_fixed_final_400/ds3/")
dsv_train = ds[0:140000]
dsv_val = ds[140000:]
print("filtering only the frontal images, this will take a few minutes")
dsf_train = dsv_train.filter(only_frontal)
dsf_val = dsv_val.filter(only_frontal)
print("filtering completed")
Expand Down
2 changes: 1 addition & 1 deletion gradient_health/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ explore.ipynb should give you an idea of how Hub is being used for training and

dataset_generation.py contains the transform code that we adapted to hub format from the tfds code provided

model_training folder consists largely of the code from the repo https://github.com/brucechou1983/CheXNet-Keras adapted to use Hub. Only train.py and confi.ini should be relevant.
model_training folder consists largely of the code from the repo https://github.com/brucechou1983/CheXNet-Keras adapted to use Hub. Only train.py and confi.ini should be relevant. run train.py from the inner director ie. gradient_health/model_training as it relies on a files relative path and running it from outside might lead to "AttributeError: 'NoneType' object has no attribute 'split'"

0 comments on commit a5f0e3c

Please sign in to comment.