Open zhiqwang opened 1 year ago
Anyway the error suggests that the issue could be resolved by moving NestedTestor to a pytorch class, if it works would you accept a PR on that?
Originally posted by @gillpeacegood in https://github.com/zhiqwang/yolov5-rt-stack/discussions/469#discussioncomment-4468135
Actually there are some historical reasons for the existence of NestedTensor, which is not required since #293 was merged. I guess there's some way to not rely upon NestedTensor for the pre-processing.
NestedTensor
https://github.com/zhiqwang/yolov5-rt-stack/blob/1043ee3eacd8218c39e324c39693e373daf29a09/yolort/models/transform.py#L13-L20
Originally posted by @gillpeacegood in https://github.com/zhiqwang/yolov5-rt-stack/discussions/469#discussioncomment-4468135
Actually there are some historical reasons for the existence of
NestedTensor
, which is not required since #293 was merged. I guess there's some way to not rely uponNestedTensor
for the pre-processing.https://github.com/zhiqwang/yolov5-rt-stack/blob/1043ee3eacd8218c39e324c39693e373daf29a09/yolort/models/transform.py#L13-L20