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

default training config update #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions pytorch/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ modelParam:
divL1Lambda: 0
# MSE of long term divergence
# If > 0, implements the Long Term divergence concept from FluidNet
divLongTermLambda: 0
# Time step: default simulation timestep.
divLongTermLambda: 1
# Time step: default simulation timestep only when long term divergence is active.
dt: 0.1
# buoyancyScale : Buoyancy forces scale
# gravityScale : Gravity forces scale
Expand Down Expand Up @@ -96,7 +96,7 @@ modelParam:
numWorkers: 3
# If true, dataset is preprocessed and programs exists.
# Preprocessing is automatic if no previous preproc is detected on current dataset.
preprocOnly: false
preprocOriginalFluidNetDataOnly: false
# printTraining : Debug options for training.
# Prints or shows validation dataset and compares net
# output to GT.
Expand Down
4 changes: 2 additions & 2 deletions pytorch/fluid_net_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
conf['shuffleTraining'] = not arguments.noShuffle

# Preprocessing dataset message (will exit after preproc)
if (conf['preprocOnly']):
if (conf['preprocOriginalFluidNetDataOnly']):
print('Running preprocessing only')
resume = False

Expand All @@ -106,7 +106,7 @@
tr = lib.FluidNetDataset(conf, 'tr', save_dt=4, resume=resume)
te = lib.FluidNetDataset(conf, 'te', save_dt=4, resume=resume)

if (conf['preprocOnly']):
if (conf['preprocOriginalFluidNetDataOnly']):
sys.exit()

# We create two conf dicts, general params and model params.
Expand Down