06bb64cd6f06413528f5c634da7517350541adeb,examples/extract_image_feature.py,,main,#,24

Before Change


    random.seed(42)

    // Get command line arguments
    parser = ParlaiParser()
    parser.add_argument("-n", "--num-examples", default=10)
    parser.set_defaults(datatype="train:ordered")

    ImageLoader.add_cmdline_args(parser)

After Change


    world = create_task(opt, agent)

    logger = ProgressLogger(should_humanize=False)
    print("Beginning image extraction...")
    exs_seen = 0
    total_exs = world.num_examples()
    while not world.epoch_done():
        world.parley()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 06bb64cd6f06413528f5c634da7517350541adeb
Time: 2018-02-05
Author: kshuster@fb.com
File Name: examples/extract_image_feature.py
Class Name:
Method Name: main


Project Name: facebookresearch/ParlAI
Commit Name: bda498b7debdad9c84c905e60ef83f5c994f4ceb
Time: 2018-09-25
Author: madrugado@users.noreply.github.com
File Name: projects/convai/convai_bot.py
Class Name:
Method Name: main


Project Name: facebookresearch/ParlAI
Commit Name: bbf87211d16cfdb647c4e9c59344fb20294b4d75
Time: 2018-04-17
Author: ahm@fb.com
File Name: projects/convai2/eval_ppl.py
Class Name:
Method Name: