bd6abd23feba4f7955a6f240412e7be06c5b6ca3,tests/unittests/test_utils_export.py,,test_export_model_zoo,#,9

Before Change


    for model in pretrained_model_list():
        if "i3d" in model: continue    // 3D model do not support it now, skip. Data shape is 5D.
        print("exporting:", model)
        kwargs = {"data_shape":(480, 480, 3)} if "deeplab" in model or "psp" in model else {}
        if "_gn" in model:
            continue
        try:
            gcv.utils.export_block(model, gcv.model_zoo.get_model(model, pretrained=True), **kwargs)

After Change


    for model in pretrained_model_list():
        print("exporting:", model)

        if "deeplab" in model or "psp" in model:
            // semantic segmentation models require fixed data shape
            kwargs = {"data_shape":(480, 480, 3)}
        elif "3d" in model:
            // video action recognition models require 4d data shape
            kwargs = {"data_shape":(3, 32, 224, 224), "layout":"CTHW", "preprocess":None}
        elif "slowfast_4x16" in model:
            // video action recognition models require 4d data shape
            kwargs = {"data_shape":(3, 36, 224, 224), "layout":"CTHW", "preprocess":None}
        elif "slowfast_8x8" in model:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: dmlc/gluon-cv
Commit Name: bd6abd23feba4f7955a6f240412e7be06c5b6ca3
Time: 2019-11-13
Author: yizhu59@gmail.com
File Name: tests/unittests/test_utils_export.py
Class Name:
Method Name: test_export_model_zoo


Project Name: NervanaSystems/coach
Commit Name: 524f8436a298a243bd81b8860f85ab6145b4b26f
Time: 2018-11-14
Author: scott.leishman@gmail.com
File Name: rl_coach/environments/doom_environment.py
Class Name: DoomEnvironment
Method Name: __init__


Project Name: allenai/allennlp
Commit Name: 02d5ddeef16a767bc77f9845bccc9ad4c47ad239
Time: 2020-03-17
Author: wuzhaofeng1997@gmail.com
File Name: allennlp/tests/data/token_indexers/pretrained_transformer_mismatched_indexer_test.py
Class Name: TestPretrainedTransformerMismatchedIndexer
Method Name: test_bert


Project Name: ray-project/ray
Commit Name: 34bae27ac7d3c39335a2b8c7d4cd4efba56aa398
Time: 2020-06-12
Author: ekhliang@gmail.com
File Name: rllib/execution/replay_buffer.py
Class Name: LocalReplayBuffer
Method Name: add_batch