Return the directory where experimental artifacts are placed. If the directory does not exist, it is created. A canonical path is built using the name from an imdb and a network (if not None).
(name, phase)
| 122 | |
| 123 | |
| 124 | def get_output_dir(name, phase): |
| 125 | """Return the directory where experimental artifacts are placed. |
| 126 | If the directory does not exist, it is created. |
| 127 | A canonical path is built using the name from an imdb and a network |
| 128 | (if not None). |
| 129 | """ |
| 130 | filedir = os.path.join(name, phase) |
| 131 | if not os.path.exists(filedir): |
| 132 | os.makedirs(filedir) |
| 133 | return filedir |
| 134 | |
| 135 | |
| 136 | def get_voc_results_file_template(image_set, cls): |