forked from tonyreina/mlt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings_dist.py
61 lines (50 loc) · 1.64 KB
/
settings_dist.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: EPL-2.0
#
import os
BASE = "/home/bduser/unet/data/"
DATA_PATH = "/tmp/data"
OUT_PATH = "/tmp/data"
IMG_ROWS = 128
IMG_COLS = 128
RESCALE_FACTOR = 1
SLICE_BY = 5
IN_CHANNEL_NO = 1
OUT_CHANNEL_NO = 1
EPOCHS = 10
BLOCKTIME = 0
NUM_INTRA_THREADS = 50
NUM_INTER_THREADS = 2
BATCH_SIZE = 128
LEARNINGRATE = 0.0005 # 0.0005
DECAY_STEPS = 100
LR_FRACTION = 0.2
CONST_LEARNINGRATE = True
USE_UPSAMPLING = False
# True = Use upsampling; False = Use transposed convolution
MODEL_FN = "brainWholeTumor" # Name for Mode=1
# MODEL_FN = "brainActiveTumor" #Name for Mode=2
# MODEL_FN = "brainCoreTumor" #Name for Mode=3
# Use flair to identify the entire tumor: test reaches 0.78-0.80: MODE=1
# Use T1 Post to identify the active tumor: test reaches 0.65-0.75: MODE=2
# Use T2 to identify the active core (necrosis, enhancing, non-enh):
# test reaches 0.5-0.55: MODE=3
MODE = 1
CHECKPOINT_DIRECTORY = os.environ.get("OUTPUT_PATH", "/data03/checkpoints/")
TENSORBOARD_IMAGES = 3 # How many images to display on TensorBoard