Skip to content

Commit

Permalink
Update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sungchul2 committed May 31, 2023
1 parent c4cc6bf commit 3c2d96e
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions otx/core/data/adapter/segmentation_dataset_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,6 @@ def _import_dataset(
# FIXME: Because background class is ignored when generating polygons, meta is set with len(labels)-1.
# It must be considered to set the whole labels later.
# (-> {i: f"target{i+1}" for i in range(max(total_labels)+1)})
if total_labels == [0]:
# FIXME: When there is only 'background', 'background' should be saved.
# This is just for test case.
total_labels = [1]
meta = {"label_map": {i + 1: f"target{i+1}" for i in range(max(total_labels))}}
with open(os.path.join(pseudo_mask_dir, "dataset_meta.json"), "w", encoding="UTF-8") as f:
json.dump(meta, f, indent=4)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3c2d96e

Please sign in to comment.