Removed checkpoint path from prepared paths for ssd test
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -228,7 +228,7 @@ def _ssd_test(args: argparse.Namespace) -> None:
|
|||||||
|
|
||||||
use_dropout = _ssd_is_dropout(args)
|
use_dropout = _ssd_is_dropout(args)
|
||||||
|
|
||||||
output_path, checkpoint_path, weights_file = _ssd_test_prepare_paths(args, output_path,
|
output_path, weights_file = _ssd_test_prepare_paths(args, output_path,
|
||||||
weights_path, test_pretrained)
|
weights_path, test_pretrained)
|
||||||
|
|
||||||
file_names, instances = _ssd_test_load_gt(ground_truth_path)
|
file_names, instances = _ssd_test_load_gt(ground_truth_path)
|
||||||
@ -612,7 +612,7 @@ def _ssd_train_prepare_paths(args: argparse.Namespace,
|
|||||||
|
|
||||||
def _ssd_test_prepare_paths(args: argparse.Namespace,
|
def _ssd_test_prepare_paths(args: argparse.Namespace,
|
||||||
output_path: str, weights_path: str,
|
output_path: str, weights_path: str,
|
||||||
test_pretrained: bool) -> Tuple[str, str, str]:
|
test_pretrained: bool) -> Tuple[str, str]:
|
||||||
import os
|
import os
|
||||||
|
|
||||||
output_path = f"{output_path}/{args.network}/test/{args.iteration}/"
|
output_path = f"{output_path}/{args.network}/test/{args.iteration}/"
|
||||||
@ -624,7 +624,7 @@ def _ssd_test_prepare_paths(args: argparse.Namespace,
|
|||||||
|
|
||||||
os.makedirs(output_path, exist_ok=True)
|
os.makedirs(output_path, exist_ok=True)
|
||||||
|
|
||||||
return output_path, checkpoint_path, weights_file
|
return output_path, weights_file
|
||||||
|
|
||||||
|
|
||||||
def _ssd_evaluate_prepare_paths(args: argparse.Namespace,
|
def _ssd_evaluate_prepare_paths(args: argparse.Namespace,
|
||||||
|
|||||||
Reference in New Issue
Block a user