c9fb02940b16716901d0a2eef95abab827c25896,src/koalarization/evaluate.py,,,#,9
Before Change
saver.restore(sess, latest_checkpoint)
print(" done!")
else:
print("No checkpoint found in:", checkpoint_paths)
// Evaluation (epoch=-1 to say that this is an evaluation after training)
res = sess.run(evaluations_ops)
print("Cost: {}".format(res["cost"]))
After Change
from .training_utils import evaluation_pipeline, \
checkpointing_system, plot_evaluation, metrics_system
parser = argparse.ArgumentParser(description="Eval")
parser.add_argument("tfrecords",
type=str,
metavar="TFRECORDS_DIR",
help="evaluate using all tfrecords in TFRECORDS_DIR")
parser.add_argument("output",
type=str,
metavar="OUR_DIR",
help="use OUR_DIR to load checkpoints and write images")
parser.add_argument("--run-id",
required=True,
type=str,
metavar="RUN_ID",
help="load checkpoint from the run RUN_ID")
args = parser.parse_args()
dir_tfrecords = Path(args.tfrecords).expanduser().resolve().as_posix()
dir_output = Path(args.output).expanduser().resolve().joinpath(args.run_id).as_posix()
// PARAMETERS
run_id = args.run_id
val_number_of_images = 100
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances Project Name: baldassarreFe/deep-koalarization
Commit Name: c9fb02940b16716901d0a2eef95abab827c25896
Time: 2020-05-15
Author: baldassarre.fe@gmail.com
File Name: src/koalarization/evaluate.py
Class Name:
Method Name:
Project Name: pytorch/examples
Commit Name: 01d70cd14b2bd9f1754b94e03c3555ec412a3845
Time: 2020-02-12
Author: rvarm1@fb.com
File Name: distributed/rpc/parameter_server/rpc_param_server.py
Class Name:
Method Name:
Project Name: MycroftAI/mycroft-precise
Commit Name: 5ce56ff7e7f0c085bdff9745471c50aa4d0e1faa
Time: 2017-11-03
Author: matthew3311999@gmail.com
File Name: precise/stream.py
Class Name:
Method Name: main