Skip to content

20240814 fix strat split#12

Open
buffalotheory wants to merge 2 commits into
Orion-AI-Lab:masterfrom
buffalotheory:20240814_fix_strat_split
Open

20240814 fix strat split#12
buffalotheory wants to merge 2 commits into
Orion-AI-Lab:masterfrom
buffalotheory:20240814_fix_strat_split

Conversation

@buffalotheory
Copy link
Copy Markdown

Running coco_data_split.py with the --how='stratified' option resulted in a ZeroDivisionError exception. This pull request is a proposed fix.

python3 coco_data_split.py --how='stratified' --data_path=../dataset/netcdf --coco_path=./coco_files/ --prefix=stratified_30 --num_patches=30 --seed=16
Traceback (most recent call last):
  File "/Users/iahansen/admin/master_study/P7/repo/Sen4AgriNet/s4am2/coco_data_split.py", line 200, in <module>
    new_train_r = (args.num_patches * train_r) / all_patches
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
ZeroDivisionError: division by zero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant