-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
3,818 additions
and
3,370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[build] | ||
rustflags = ["-C", "target-cpu=native"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,13 @@ | ||
import core | ||
core.init() | ||
# IMPORTANT: Do not add any imports above here otherwise you may break the code in core.init() that limits the number of threads! | ||
|
||
import utils | ||
import sys | ||
import atexit | ||
import tasks | ||
import os | ||
|
||
if core.args.notify: | ||
argv = " ".join([arg for arg in sys.argv if arg != "--notify"]) | ||
if hasattr(core, "embedded_parameters"): | ||
argv = f"{argv}\n\nembedded parameters: {str(core.embedded_parameters)}" | ||
atexit.register(utils.push_notification, core.args.configuration, argv) | ||
|
||
task = core.create_object(tasks, core.task) | ||
task.run() | ||
os.system(f"touch {core.output_path}/done") | ||
|
||
if core.args.notify and hasattr(task, "push_notification"): | ||
atexit.unregister(utils.push_notification) | ||
utils.push_notification(core.args.configuration, f"{argv}\n\n{task.push_notification}") | ||
if core.args.configuration[0] != "@": | ||
task = core.create_object(tasks, core.task) | ||
task.run() | ||
core.call(f"touch {core.output_path}/done") | ||
else: | ||
import os | ||
if "LD_LIBRARY_PATH" in os.environ: | ||
del os.environ["LD_LIBRARY_PATH"] # fixes an issue with calling ssh after cv2 has been imported | ||
getattr(tasks, core.args.configuration[1:])() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
task: SemanticSegmentation | ||
output_path: tmp/PG | ||
clear_output_path: True | ||
|
||
SegmentationDataset_params: | ||
<<: *$0-defaults | ||
random_seed: 0 | ||
patch_size: [224, 224] | ||
training_samples: 8000 | ||
augmentation: | ||
scaling: .3 | ||
x_shear: 6 | ||
y_shear: 6 | ||
rotation: 30 | ||
h_flip: 0 | ||
v_flip: 0 | ||
contrast: 0 | ||
brightness: 0 | ||
noise: .1 | ||
at_test_time: False | ||
|
||
SegForestNet_params: | ||
<<: *SegForestNet-defaults | ||
downsampling: 3 | ||
pretrained_encoder: False | ||
trees: | ||
- num_features: | ||
shape: 8 | ||
content: 24 | ||
shape_to_content: 0 | ||
graph: BSPTree(2, Line) | ||
classifier: [] | ||
classifier_skip_from: 0 | ||
classifier_context: 2 | ||
one_tree_per_class: True | ||
decoder: | ||
type: TreeFeatureDecoder | ||
num_blocks: 8 | ||
context: 1 | ||
intermediate_features: 96 | ||
use_residual_blocks: True | ||
vq: | ||
type: [0, 0] | ||
region_map: | ||
accumulation: add | ||
node_weight: 1 | ||
softmax_temperature: | ||
parameters: [epoch, epochs] | ||
func: 0 | ||
value_range: [1, 1] | ||
loss: | ||
cross_entropy: pixels | ||
ce_constant: 10 | ||
distribution_metric: gini | ||
min_region_size: 4 | ||
weights: [.8625,.0475,.035,.055,0] | ||
|
||
FCN_params: | ||
downsampling: 5 | ||
pretrained_encoder: False | ||
|
||
RAFCN_params: | ||
downsampling: 5 | ||
pretrained_encoder: False | ||
|
||
FarSeg_params: | ||
downsampling: 5 | ||
pretrained_encoder: False | ||
|
||
PFNet_params: | ||
downsampling: 5 | ||
pretrained_encoder: False | ||
|
||
UNet_params: | ||
|
||
DeepLabv3p_params: | ||
downsampling: 3 | ||
pretrained_encoder: False | ||
aspp_dilation_rates: [] # default for MobileNetv2 backbone (performs best, even with Xception) | ||
#aspp_dilation_rates: [12, 24, 36] # default for Xception backbone with downsampling == 3 according to DeepLab paper | ||
#aspp_dilation_rates: [6, 12, 18] # default for Xception backbone with downsampling == 4 according to DeepLab paper | ||
|
||
SemanticSegmentation_params: | ||
<<: *SemanticSegmentation-defaults | ||
dataset: SegmentationDataset | ||
model: $1 | ||
epochs: $2 | ||
mini_batch_size: 18 | ||
shuffle_seed: -1 | ||
num_samples_per_epoch: 8000 | ||
unique_iterations: False | ||
optimizer: | ||
type: AdamW | ||
arguments: | ||
betas: [0.9, 0.999] | ||
weight_decay: 0.01 | ||
learning_rate: | ||
max_value: $3 | ||
min_value: 0 | ||
num_cycles: 1 | ||
cycle_length_factor: 2 | ||
num_iterations_factor: 1 | ||
gradient_clipping: 0 | ||
class_weights: | ||
ignore_dataset: False | ||
ignored_class_weight: 0 | ||
dynamic_exponent: 0 |
Oops, something went wrong.