Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update config for resnet50 #1

Merged
merged 9 commits into from
Mar 4, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update train.py
Update imagenet pretrain and delete heads training
  • Loading branch information
John1231983 committed Mar 2, 2018
commit 91155b4bf1124c0bc8662558c49bcea72953665a
12 changes: 6 additions & 6 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
model_dir=MODEL_DIR)

# Which weights to start with?
init_with = "coco" # imagenet, coco, or last
init_with = "imagenet" # imagenet, coco, or last

if init_with == "imagenet":
model.load_weights(model.get_imagenet_weights(), by_name=True)
Expand Down Expand Up @@ -57,12 +57,12 @@
# Passing layers="heads" freezes all layers except the head
# layers. You can also pass a regular expression to select
# which layers to train by name pattern.
model.train(dataset_train, dataset_val,
learning_rate=bowl_config.LEARNING_RATE,
epochs=1,
layers='heads')
#model.train(dataset_train, dataset_val,
# learning_rate=bowl_config.LEARNING_RATE,
# epochs=1,
# layers='heads')

model.train(dataset_train, dataset_val,
learning_rate=bowl_config.LEARNING_RATE / 10,
epochs=100,
layers="all")
layers="all")