e6b394f7340cbeee16bf4424cdf0367f80b60619,code/deep/finetune_AlexNet_ResNet/office31.py,,,#,20

Before Change



os.environ["CUDA_VISIBLE_DEVICES"] = "0"

DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
CUDA = True if torch.cuda.is_available() else False
LEARNING_RATE = 0.001
BATCH_SIZE_SRC = 64

After Change


import time

parser = argparse.ArgumentParser(description="Finetune")
parser.add_argument("-model", "-m", type=str, required=True, help="model name", default="alexnet")
parser.add_argument("-batchsize", "-b", type=int, required=True, help="batch size", default=64)
parser.add_argument("-cuda", "-g", type=int, required=True, help="cuda id", default=3)
args = parser.parse_args()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: jindongwang/transferlearning
Commit Name: e6b394f7340cbeee16bf4424cdf0367f80b60619
Time: 2018-12-22
Author: jindongwang@outlook.com
File Name: code/deep/finetune_AlexNet_ResNet/office31.py
Class Name:
Method Name:


Project Name: tristandeleu/pytorch-maml-rl
Commit Name: efd31f17f6753ee92ef1038016bd9470f25867d1
Time: 2019-12-08
Author: tristan.deleu@gmail.com
File Name: train.py
Class Name:
Method Name:


Project Name: pyprob/pyprob
Commit Name: 1a0ad8fe3b96b02bb080ec42b4426377f5bb2cfa
Time: 2017-04-03
Author: atilimgunes.baydin@gmail.com
File Name: compile.py
Class Name:
Method Name:


Project Name: dmlc/dgl
Commit Name: 189c2c0907cdff54f733299a93360ddfcff4ccb7
Time: 2019-09-07
Author: mufeili1996@gmail.com
File Name: examples/pytorch/model_zoo/chem/property_prediction/regression.py
Class Name:
Method Name: