8d5bdbba814fbe9bb2bc82576d047289522a693b,gluoncv/data/transforms/presets/yolo.py,YOLO3DefaultTrainTransform,__init__,#YOLO3DefaultTrainTransform#Any#Any#Any#Any#Any#Any#,131

Before Change



        // in case network has reset_ctx to gpu
        self._fake_x = mx.nd.zeros((1, 3, height, width))
        net = copy.deepcopy(net)
        net.collect_params().reset_ctx(None)
        with autograd.train_mode():
            _, self._anchors, self._offsets, self._feat_maps, _, _, _, _ = net(self._fake_x)
        from ....model_zoo.yolo.yolo_target import YOLOV3PrefetchTargetGenerator

After Change


        self._net_none = False
        if net is None:
            self._net_none = True
            return
        self._num_classes = len(net.classes)
        self._kwargs = kwargs

        // in case network has reset_ctx to gpu
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dmlc/gluon-cv
Commit Name: 8d5bdbba814fbe9bb2bc82576d047289522a693b
Time: 2020-11-24
Author: chinakook@msn.com
File Name: gluoncv/data/transforms/presets/yolo.py
Class Name: YOLO3DefaultTrainTransform
Method Name: __init__


Project Name: wkentaro/labelme
Commit Name: d857209b51e3cd02cbb6b9c7d993fd84eeeb5ca5
Time: 2019-05-15
Author: www.kentaro.wada@gmail.com
File Name: labelme/shape.py
Class Name: Shape
Method Name: copy


Project Name: asyml/texar
Commit Name: dfb500b87ef42dfec26216c0e63a6badd0e42095
Time: 2018-08-05
Author: zhiting.hu@petuum.com
File Name: texar/utils/utils.py
Class Name:
Method Name: dict_patch