Skip to content

Commit

Permalink
Add sample.cfg and update gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
nthistle committed Jul 16, 2018
1 parent e4e1644 commit 036e81d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,7 @@ ENV/

# mypy
.mypy_cache/

# run config files
*.cfg
!sample.cfg
34 changes: 28 additions & 6 deletions sample.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,50 @@ train=true
run_output="/path/to/output/directory"
valid_container="/path/to/container.n5"
valid_dataset="path/to/dataset"
gap_container="/path/to/container.n5" ; Only needed if train=true
gap_dataset="path/to/dataset" ; Only needed if train=true
gap_location=":,:,15" ; Uses slice notation. (z,y,x) format. Only needed if train=true

; Only needed if train=true
gap_container="/path/to/container.n5"
gap_dataset="path/to/dataset"
gap_location=":,:,15"
; (Uses slice notation. (z,y,x) format)



; Only necessary if global.train=true
[train]
pretrained_model="/path/to/model.h5" ; Only needed if pretrain=false
num_epochs=100
num_minibatch=64
minibatch_size=4
instance_noise=false
instance_noise_std_dev=0 ; Optional if instance_noise=false
anneal_noise=30 ; Optional if instance_noise=false

; Only necessary if instance_noise=true
instance_noise_std_dev=0
anneal_noise=30

; Only needed if pretrain=false
pretrained_model="/path/to/model.h5"

generator_learning_rate=1e-4
generator_optimizer="adam"
generator_mask_size=10
discriminator_learning_rate=1e-5
discriminator_optimizer="adam"
discriminator_architecture="default"

; Anything in this format gets passed to the constructor for that architecture
discriminator_arg_[argname]="value"

discriminator_batchnorm=true



; Only necessary if global.pretrain=true
[pretrain]
generator_architecture="default"

; Anything in this format gets passed to the constructor for that architecture
generator_arg_[argname]="value"

generator_learning_rate=1e-4
generator_regularization=0.0
generator_batchnorm=true

0 comments on commit 036e81d

Please sign in to comment.