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

op_helper中的is_poly(segm)方法不安全 #8894

Open
1 of 2 tasks
xiaoming-master opened this issue Mar 23, 2024 · 1 comment
Open
1 of 2 tasks

op_helper中的is_poly(segm)方法不安全 #8894

xiaoming-master opened this issue Mar 23, 2024 · 1 comment
Assignees

Comments

@xiaoming-master
Copy link

问题确认 Search before asking

  • 我已经查询历史issue,没有类似需求。I have searched the issues and found no similar feature requests.

需求描述 Feature Description

def is_poly(segm):
assert isinstance(segm, (list, dict)),
"Invalid segm type: {}".format(type(segm))
return isinstance(segm, list)
这玩意儿是不是写得太草率了,就只做了类型判断,segm内部元素格式也不判断,也不验证segm是不是真的Polygon

是否愿意提交PR Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@xiaoming-master
Copy link
Author

而且一些op增广gt_poly数据时需要ndarray,一些又需要list类型,有点混乱

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

No branches or pull requests

2 participants