Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
select contiguous data splits for val and train (#200)
Browse files Browse the repository at this point in the history
* select contiguous data splits for test and train

* changed data-dir to data_dir as arg to prepare_dutchf3.py

* update script with new required parameter label_file

* ignoring split_alaudah_et_al_19 as it is not updated

* changed TEST to VALIDATION for clarity in the code

* included job to run scripts unit test

* Fix val/train split and add tests

* adjust to consider the whole horz_lines

* update environment - gitpython version
  • Loading branch information
squassina authored and maxkazmsft committed Jun 9, 2020
1 parent 5bfff57 commit 1356ab1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/prepare_dutchf3.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def _write_split_files(splits_path, train_list, val_list, loader_type):
file_object = open(path.join(splits_path, loader_type + "_train_val.txt"), "w")
file_object.write("\n".join(train_list + val_list))
file_object.close()
file_object = open(path.join(splits_path, loader_type + "_train.txt"), "w")
file_object = open(path.join(splits_path,
loader_type + "_train.txt"), "w")
file_object.write("\n".join(train_list))
file_object.close()
file_object = open(path.join(splits_path, loader_type + "_val.txt"), "w")
Expand Down

0 comments on commit 1356ab1

Please sign in to comment.