8.1.1.1.1.2. blueoil.cmd.convert

8.1.1.1.1.2.1. Module Contents

8.1.1.1.1.2.1.1. Functions

create_output_directory(output_root_dir, output_template_dir=None)

Create output directory from template.

get_output_directories(output_root_dir)

param output_root_dir

_build_options(arch, use_fpga, target)

_output_binary_name(arch, use_fpga, target)

strip_binary(arch, use_fpga, target)

Strip binary file.

make_all(project_dir, output_dir)

Make each target.

run(experiment_id, restore_path, output_template_dir=None, image_size=(None, None), project_name=None, test_image=DEFAULT_INFERENCE_TEST_DATA_IMAGE, save_npy_for_debug=True)

Convert from trained model.

convert(experiment_id, checkpoint=None, template=None, image_size=(None, None), project_name=None, test_image=DEFAULT_INFERENCE_TEST_DATA_IMAGE, save_npy_for_debug=True)

blueoil.cmd.convert.create_output_directory(output_root_dir, output_template_dir=None)

Create output directory from template.

Parameters
  • output_root_dir

  • output_template_dir – (Default value = None)

Returns:

blueoil.cmd.convert.get_output_directories(output_root_dir)
Parameters

output_root_dir

Returns:

blueoil.cmd.convert._build_options(arch, use_fpga, target)
blueoil.cmd.convert._output_binary_name(arch, use_fpga, target)
blueoil.cmd.convert.strip_binary(arch, use_fpga, target)

Strip binary file.

Parameters

output

blueoil.cmd.convert.make_all(project_dir, output_dir)

Make each target.

Parameters
  • project_dir (str) – Path to project directory

  • output_dir (str) – Path to output directory

blueoil.cmd.convert.run(experiment_id, restore_path, output_template_dir=None, image_size=(None, None), project_name=None, test_image=DEFAULT_INFERENCE_TEST_DATA_IMAGE, save_npy_for_debug=True)

Convert from trained model.

Parameters
  • experiment_id

  • restore_path

  • output_template_dir – (Default value = None)

  • image_size – (Default value = None)

  • project_name – (Default value = None)

  • test_image – (Default value = DEFAULT_INFERENCE_TEST_DATA_IMAGE)

Returns

Path of exported dir.

(i.e. (path to saved)/saved/det_20190326181434/export/save.ckpt-161/128x128/output/)

Return type

str

blueoil.cmd.convert.convert(experiment_id, checkpoint=None, template=None, image_size=(None, None), project_name=None, test_image=DEFAULT_INFERENCE_TEST_DATA_IMAGE, save_npy_for_debug=True)