1829fcb631f11748c90df6985a7897050f2e6259,demo.py,,download_model,#Any#,17
Before Change
def download_model(fn):
if not os.path.isfile(fn):
// Download the file if doewn"t exist
call("curl ftp://cs.stanford.edu/cs/cvgl/ResidualGRUNet.npy --create-dirs -o %s" % fn)
def load_demo_images():
ims = []
After Change
if not os.path.isfile(fn):
// Download the file if doewn"t exist
print("Downloading a pretrained model")
call(["curl", "ftp://cs.stanford.edu/cs/cvgl/ResidualGRUNet.npy",
"--create-dirs", "-o", fn])
def load_demo_images():
ims = []
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: chrischoy/3D-R2N2
Commit Name: 1829fcb631f11748c90df6985a7897050f2e6259
Time: 2016-08-21
Author: chrischoy208@gmail.com
File Name: demo.py
Class Name:
Method Name: download_model
Project Name: chrischoy/3D-R2N2
Commit Name: 310ecaab05e07f01e135365326d3023e576857e6
Time: 2016-08-21
Author: chrischoy208@gmail.com
File Name: demo.py
Class Name:
Method Name: download_model
Project Name: tensorflow/minigo
Commit Name: 995fbc934966172f61b820e6774c17900364c46f
Time: 2018-05-02
Author: brian.kihoon.lee@gmail.com
File Name: rl_runner.py
Class Name:
Method Name: loop