bbbf0c9da83a59ad4b96bb6452bd4493c8d5ba39,codes/train.py,,,#,15

Before Change


// options
parser = argparse.ArgumentParser()
parser.add_argument("-opt", type=str, required=True, help="Path to options JSON file.")
args = parser.parse_args()
options_path = args.opt
opt = option.parse(options_path, is_train=True)

util.mkdir_and_rename(opt["path"]["experiments_root"])  // rename old experiments if exists

After Change


// options
parser = argparse.ArgumentParser()
parser.add_argument("-opt", type=str, required=True, help="Path to options JSON file.")
opt = option.parse(parser.parse_args().opt, is_train=True)

util.mkdir_and_rename(opt["path"]["experiments_root"])  // rename old experiments if exists
util.mkdirs((path for key, path in opt["path"].items() if not key == "experiments_root" and \
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: xinntao/BasicSR
Commit Name: bbbf0c9da83a59ad4b96bb6452bd4493c8d5ba39
Time: 2018-06-08
Author: wxt1994@126.com
File Name: codes/train.py
Class Name:
Method Name:


Project Name: atulapra/Emotion-detection
Commit Name: 295a68a030c619538dd0e9d49dbfffbe8759a57d
Time: 2020-03-24
Author: atulapra@gmail.com
File Name: src/emotions.py
Class Name:
Method Name:


Project Name: fperazzi/proSR
Commit Name: 5cde6c452a2dd04bf9359d5f9b5418fc74131b39
Time: 2018-07-26
Author: fperazzi@adobe.com
File Name: test.py
Class Name:
Method Name: parse_args