Skip to content

Commit

Permalink
💫 Ajuste fino
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu11-A committed May 30, 2024
1 parent 8bca04a commit de26f65
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"minCompressLength": 1024
},
"tensorflow": {
"bestModel": 16
"bestModel": 22
},
"debug": {
"request": false,
Expand Down
8 changes: 4 additions & 4 deletions training/unet/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def FindModel(hp: HyperParameters):
kernel_initializer: str = hp.Choice('kernel_initializer', ['he_normal']) # type: ignore
kernel_size = hp.Choice('kernel_size', values=[3])
dropout: int = hp.Float('dropout_rate', 0.1, 0.5, step=0.1) # type: ignore
filter: int = hp.Choice('filter', values=[4, 8, 16, 32]) # type: ignore
filter: int = hp.Choice('filter', values=[4, 8, 16]) # type: ignore
input = Input(shape=(512 ,320, 3))

def down_block(x, filters: int, dropout_prob: float = 0, use_maxpool=True):
Expand Down Expand Up @@ -76,10 +76,10 @@ def LoaderModel():
input = Input(shape=(512, 320, 3))
loss = 'BinaryCrossentropy'
optimizer = 'Adam'
learning_rate = 0.01
learning_rate = 0.001
kernel_size = 3
dropout = 0.1
filter = 8
dropout = 0.2
filter = 16
activation = 'relu'

kernel_initializer = 'he_normal'
Expand Down
2 changes: 1 addition & 1 deletion training/unet/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,4 @@ def on_epoch_end(self, epoch, logs=None):

print(f'Modelo salvo: {datetime.now().strftime("%a, %d %b %Y %H:%M:%S GMT")}')

asyncio.run(runTraining())
asyncio.run(runTraining())

0 comments on commit de26f65

Please sign in to comment.