Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xinwucwp committed May 6, 2020
1 parent cff7382 commit 56f0a45
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 1 deletion.
Binary file added .train.py.swp
Binary file not shown.
Binary file added .utils.py.swp
Binary file not shown.
Binary file added __pycache__/utils.cpython-37.pyc
Binary file not shown.
Binary file modified log/training/events.out.tfevents.1588726772.ustc
Binary file not shown.
Binary file added log/training/events.out.tfevents.1588727343.ustc
Binary file not shown.
Binary file added log/validation/events.out.tfevents.1588727098.ustc
Binary file not shown.
4 changes: 3 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def goTrain():
'shuffle': True}
seismPathT = "./data/train/seis/"
faultPathT = "./data/train/fault/"

seismPathV = "./data/validation/seis/"
faultPathV = "./data/validation/fault/"
train_ID = range(200)
Expand All @@ -35,7 +36,8 @@ def goTrain():
valid_generator = DataGenerator(dpath=seismPathV,fpath=faultPathV,
data_IDs=valid_ID,**params)
model = unet(input_size=(None, None, None,1))
model.compile(optimizer=Adam(lr=1e-3), loss='binary_crossentropy')
model.compile(optimizer=Adam(lr=1e-3), loss='binary_crossentropy',
metrics=['accuracy'])
model.summary()

# checkpoint
Expand Down

0 comments on commit 56f0a45

Please sign in to comment.