Skip to content

Commit abaad9a

Browse files
Fix datastat name mismatch (#1255)
Fixes #1253 . ### Description A few sentences describing the changes proposed in this pull request. ### Checks <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Avoid including large-size files in the PR. - [x] Clean up long text outputs from code cells in the notebook. - [x] For security purposes, please check the contents and remove any sensitive info such as user names and private key. - [x] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the `./figure` folder - [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>` Signed-off-by: Mingxin Zheng <[email protected]>
1 parent ab71204 commit abaad9a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

auto3dseg/notebooks/ensemble_byoc.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@
213213
"metadata": {},
214214
"outputs": [],
215215
"source": [
216-
"da = DataAnalyzer(datalist_file, dataroot_dir)\n",
216+
"data_stats_filename = os.path.join(work_dir, \"datastats.yaml\")\n",
217+
"da = DataAnalyzer(datalist_file, dataroot_dir, output_path=data_stats_filename)\n",
217218
"da.get_all_case_stats()\n",
218219
"\n",
219220
"input = {\n",
@@ -225,7 +226,7 @@
225226
"input_cfg = \"input.yaml\"\n",
226227
"ConfigParser.export_config_file(input, input_cfg)\n",
227228
"\n",
228-
"bundle_generator = BundleGen(algo_path=work_dir, data_stats_filename=\"data_stats.yaml\", data_src_cfg_name=input_cfg)\n",
229+
"bundle_generator = BundleGen(algo_path=work_dir, data_stats_filename=data_stats_filename, data_src_cfg_name=input_cfg)\n",
229230
"bundle_generator.generate(work_dir, num_fold=2)\n",
230231
"history = bundle_generator.get_history()\n",
231232
"\n",

0 commit comments

Comments
 (0)