|
87 | 87 | <div class="card-body"> |
88 | 88 | <div class="row g-3"> |
89 | 89 | <div class="col-md-6"> |
90 | | - <label class="form-label">Source Dataset (--source)</label> |
91 | | - <input type="text" class="form-control param-input" name="source" value="CULane"> |
| 90 | + <label class="form-label">Source Directory (--source_dir)</label> |
| 91 | + <input type="text" class="form-control param-input" name="source_dir" value="./datasets/CULane"> |
| 92 | + <div class="form-text small">Root folder containing source images.</div> |
92 | 93 | </div> |
93 | 94 | <div class="col-md-6"> |
94 | | - <label class="form-label">Target Dataset (--target)</label> |
95 | | - <input type="text" class="form-control param-input" name="target" value="Curvelanes"> |
| 95 | + <label class="form-label">Target Directory (--target_dir)</label> |
| 96 | + <input type="text" class="form-control param-input" name="target_dir" value="./datasets/Curvelanes"> |
| 97 | + <div class="form-text small">Root folder containing target images.</div> |
96 | 98 | </div> |
97 | 99 | <div class="col-md-6"> |
98 | | - <label class="form-label">Source Split (--src_split)</label> |
99 | | - <select class="form-select param-input" name="src_split"> |
100 | | - <option value="train" selected>train</option> |
101 | | - <option value="valid">valid</option> |
102 | | - <option value="test">test</option> |
103 | | - </select> |
| 100 | + <label class="form-label">Source List Path (--source_list_path)</label> |
| 101 | + <input type="text" class="form-control param-input" name="source_list_path" value="./datasets/CULane/list/train.txt"> |
| 102 | + <div class="form-text small">Text file with relative paths to source images.</div> |
104 | 103 | </div> |
105 | 104 | <div class="col-md-6"> |
106 | | - <label class="form-label">Target Split (--tgt_split)</label> |
107 | | - <select class="form-select param-input" name="tgt_split"> |
108 | | - <option value="train">train</option> |
109 | | - <option value="valid" selected>valid</option> |
110 | | - <option value="test">test</option> |
111 | | - </select> |
| 105 | + <label class="form-label">Target List Path (--target_list_path)</label> |
| 106 | + <input type="text" class="form-control param-input" name="target_list_path" value="./datasets/Curvelane/train/train.txt"> |
| 107 | + <div class="form-text small">Text file with relative paths to target images.</div> |
112 | 108 | </div> |
113 | 109 | </div> |
114 | 110 | </div> |
|
289 | 285 | const allShiftParams = document.querySelectorAll('.shift-param'); |
290 | 286 |
|
291 | 287 | // List of standard arguments mapped from input name to CLI flag |
| 288 | + // UPDATED: Removed old split/dataset name args, added explicit directory/list args |
292 | 289 | const argMap = { |
293 | | - 'source': '--source', |
294 | | - 'target': '--target', |
295 | | - 'src_split': '--src_split', |
296 | | - 'tgt_split': '--tgt_split', |
| 290 | + 'source_dir': '--source_dir', |
| 291 | + 'target_dir': '--target_dir', |
| 292 | + 'source_list_path': '--source_list_path', |
| 293 | + 'target_list_path': '--target_list_path', |
297 | 294 | 'src_samples': '--src_samples', |
298 | 295 | 'tgt_samples': '--tgt_samples', |
299 | 296 | 'num_runs': '--num_runs', |
|
335 | 332 | if (element) { |
336 | 333 | if (element.type === 'checkbox') { |
337 | 334 | if (element.checked) { |
338 | | - // Python argparse type=bool usually treats any non-empty string as True |
339 | 335 | cmd.push(`${flag} True`); |
340 | 336 | } |
341 | 337 | } else if (element.value.trim() !== "") { |
|
0 commit comments