cc07095b2f72ff3ba5e5d76900ff17111cf9f177,batchflow/models/tf/unet.py,UNet,build_config,#UNet#Any#,58

Before Change


        config = super().build_config(names)

        if self.config.get("body/filters") is None:
            config["body/filters"] = (2 ** np.arange(config["body/num_blocks"]) * 64).tolist()
        if config.get("head/num_classes") is None:
            config["head/num_classes"] = self.num_classes("targets")
        return config

After Change


        num_stages = config.get("body/encoder/num_stages")

        if config.get("body/encoder/blocks/filters") is None:
            config["body/encoder/blocks/filters"] = [128*2**i for i in range(num_stages)]

        if config.get("body/decoder/blocks/filters") is None:
            config["body/decoder/blocks/filters"] = list(reversed([64*2**i for i in range(num_stages)]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: analysiscenter/batchflow
Commit Name: cc07095b2f72ff3ba5e5d76900ff17111cf9f177
Time: 2019-07-29
Author: 7520522+a-arefina@users.noreply.github.com
File Name: batchflow/models/tf/unet.py
Class Name: UNet
Method Name: build_config


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 1a89404a84393211c7b370077fafe536a8f44762
Time: 2018-03-02
Author: max.lapan@gmail.com
File Name: ch17/lib/common.py
Class Name:
Method Name: iterate_batches


Project Name: deepmipt/DeepPavlov
Commit Name: 1a6d4020c53e2b39e224616481528fad901cbd4e
Time: 2018-10-15
Author: yoptar@gmail.com
File Name: deeppavlov/core/commands/infer.py
Class Name:
Method Name: predict_on_stream