Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Merge branch 'staging' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkazmsft authored Dec 9, 2019
2 parents 585b9b3 + 459a54d commit e1c25e9
Show file tree
Hide file tree
Showing 23 changed files with 784 additions and 771 deletions.
1 change: 1 addition & 0 deletions .ci/steps/setup_step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ steps:
# make sure we have the latest and greatest
conda env create -f environment/anaconda/local/environment.yml python=3.6 --force
conda init bash
source activate ${{parameters.conda}}
pip install -e interpretation
pip install -e cv_lib
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,16 @@
},
"outputs": [],
"source": [
"max_iterations = None # The number of iterations you want to run in training or validation\n",
"# The number of datapoints you want to run in training or validation per batch \n",
"# Setting to None will run whole dataset\n",
"# useful for integration tests with a setting of something like 3\n",
"# Use only if you want to check things are running and don't want to run\n",
"# through whole dataset\n",
"max_epochs = config.TRAIN.END_EPOCH # The number of epochs to run in training\n",
"max_snapshots = config.TRAIN.SNAPSHOTS"
"max_iterations = None \n",
"# The number of epochs to run in training\n",
"max_epochs = config.TRAIN.END_EPOCH \n",
"max_snapshots = config.TRAIN.SNAPSHOTS\n",
"dataset_root = config.DATASET.ROOT"
]
},
{
Expand Down Expand Up @@ -199,8 +203,8 @@
"metadata": {},
"outputs": [],
"source": [
"image_dir = os.path.join(config.DATASET.ROOT, \"inlines\")\n",
"mask_dir = os.path.join(config.DATASET.ROOT, \"masks\")\n",
"image_dir = os.path.join(dataset_root, \"inlines\")\n",
"mask_dir = os.path.join(dataset_root, \"masks\")\n",
"\n",
"image_iter = pipe(os.path.join(image_dir, \"*.tiff\"), glob.iglob,)\n",
"\n",
Expand Down Expand Up @@ -360,7 +364,7 @@
"outputs": [],
"source": [
"train_set = PenobscotInlinePatchDataset(\n",
" config.DATASET.ROOT,\n",
" dataset_root,\n",
" config.TRAIN.PATCH_SIZE,\n",
" config.TRAIN.STRIDE,\n",
" split=\"train\",\n",
Expand All @@ -370,7 +374,7 @@
")\n",
"\n",
"val_set = PenobscotInlinePatchDataset(\n",
" config.DATASET.ROOT,\n",
" dataset_root,\n",
" config.TRAIN.PATCH_SIZE,\n",
" config.TRAIN.STRIDE,\n",
" split=\"val\",\n",
Expand Down Expand Up @@ -593,7 +597,7 @@
"outputs": [],
"source": [
"logger.info(\"Starting training\")\n",
"trainer.run(train_loader, max_epochs=config.TRAIN.END_EPOCH)"
"trainer.run(train_loader, max_epochs=max_epochs)"
]
},
{
Expand All @@ -610,7 +614,8 @@
"metadata": {},
"outputs": [],
"source": [
"%load_ext tensorboard"
"if max_epochs>1:\n",
" %load_ext tensorboard"
]
},
{
Expand All @@ -619,7 +624,8 @@
"metadata": {},
"outputs": [],
"source": [
"%tensorboard --logdir outputs --port 6007 --host 0.0.0.0"
"if max_epochs>1:\n",
" %tensorboard --logdir outputs --port 6007 --host 0.0.0.0"
]
}
],
Expand Down
107 changes: 0 additions & 107 deletions experiments/interpretation/demo/local/configs/hrnet.yaml

This file was deleted.

121 changes: 0 additions & 121 deletions experiments/interpretation/demo/local/default.py

This file was deleted.

34 changes: 0 additions & 34 deletions experiments/interpretation/demo/local/logging.conf

This file was deleted.

Loading

0 comments on commit e1c25e9

Please sign in to comment.