Skip to content

Commit

Permalink
update evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix104104 committed Jul 31, 2018
1 parent 193c94e commit f150be8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions batch_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@

### model options
parser.add_argument('-method', type=str, required=True, help='full model name')
parser.add_argument('-epoch', type=int, default=-1, help='model epoch')
parser.add_argument('-gpu', type=int, default=0, help='gpu device id')
parser.add_argument('-metric', type=str, required=True, choices=["LPIPS", "WarpError"])
parser.add_argument('-redo', action="store_true", help='redo evaluation')

opts = parser.parse_args()
print(opts)

if opts.epoch != -1:
opts.method = os.path.join("output", opts.method, "epoch_%d" %opts.epoch)

filename = "lists/test_tasks.txt"
with open(filename) as f:
Expand Down

0 comments on commit f150be8

Please sign in to comment.