Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加可选功能 扁平化选区 若启用则支持选区增减交异或 (有事,故懒得改了) #169

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
修复isatToVoc过程中,numPy数组要求长宽为整数,但实际传递了两个内容为整数的字符串,引起报错
  • Loading branch information
XieDeWu committed Jun 1, 2024
commit 3e5cd317fef217521573d77c1b5f6e4bd947ae8b
2 changes: 1 addition & 1 deletion ISAT/scripts/voc.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _save_one_voc_png(self, anno:ISAT.ANNO, png_path, cmap, category_index_dict=
height = info.height
depth = info.depth
note = info.note
img = np.zeros(shape=(height, width), dtype=np.uint8)
img = np.zeros(shape=(int(height), int(width)), dtype=np.uint8)

objects = sorted(objects, key=lambda obj:obj.layer)

Expand Down