30a97dc7c5ae39a0e010f8c9d63714ade624f37c,src/pipelines.py,,preprocessing_inference,#Any#Any#,176
Before Change
},
cache_dirpath=config.env.cache_dirpath)
loader = Step(name="loader",
transformer=ImageSegmentationLoader(**config.loader),
input_data=["specs"],
input_steps=[reader_inference],
adapter={"X": ([("reader_inference", "X")]),
"y": ([("reader_inference", "y")]),
"train_mode": ([("specs", "train_mode")]),
},
cache_dirpath=config.env.cache_dirpath)
else:
xy_inference = Step(name="xy_inference",
transformer=XYSplit(**config.xy_splitter[model_name]),
input_data=["input", "specs"],
After Change
def preprocessing_inference(config, model_name="unet"):
if config.execution.loader_mode == "crop_and_pad":
Loader = loaders.ImageSegmentationLoaderCropPad
elif config.execution.loader_mode == "resize":
Loader = loaders.ImageSegmentationLoaderResize
else:
raise NotImplementedError
if config.loader.dataset_params.image_source == "memory":
reader_inference = Step(name="reader_inference",
transformer=ImageReader(**config.reader[model_name]),
input_data=["input", "specs"],
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: minerva-ml/open-solution-data-science-bowl-2018
Commit Name: 30a97dc7c5ae39a0e010f8c9d63714ade624f37c
Time: 2018-06-28
Author: andrzej.pyskir@gmail.com
File Name: src/pipelines.py
Class Name:
Method Name: preprocessing_inference
Project Name: minerva-ml/open-solution-data-science-bowl-2018
Commit Name: 30a97dc7c5ae39a0e010f8c9d63714ade624f37c
Time: 2018-06-28
Author: andrzej.pyskir@gmail.com
File Name: src/pipelines.py
Class Name:
Method Name: preprocessing_train
Project Name: rlworkgroup/garage
Commit Name: d2821d6b9c16731358d75866440ec31af3b2803a
Time: 2018-06-18
Author: 31218416+zhanpenghe@users.noreply.github.com
File Name: garage/envs/normalized_env.py
Class Name: NormalizedEnv
Method Name: step