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

Orca do not support preprocess inputs before training in forward() #4410

Open
zhanglirong1999 opened this issue Apr 13, 2022 · 4 comments
Open
Labels

Comments

@zhanglirong1999
Copy link

zhanglirong1999 commented Apr 13, 2022

I rewrite yolox's code to run on orca as distributed, but errors were reported when forward(). Because orca directly use the input to forward() after the data loader, resulting in the inputs not being supported in yolox forward(). Yolox would preprocess input and target after the data loader before going to model forward.

Is it necessary for orca to support some special preprocess before training?

@zhanglirong1999
Copy link
Author

This is the link that orca directly call the forward(). But the input exceeds the size of the forward() in yolox

https://github.com/intel-analytics/BigDL/blob/main/python/orca/src/bigdl/orca/learn/pytorch/training_operator.py#L282

@zhanglirong1999
Copy link
Author

zhanglirong1999 commented Apr 13, 2022

@hkvision
Copy link
Contributor

Probably we can add an argument for users to specify a preprocess function?

@zhanglirong1999
Copy link
Author

The original yolox GPU version used a prefetcher, throwing away two inputs and only retaining two inputs. This is also a part of its data preprocessing.
https://github.com/Megvii-BaseDetection/YOLOX/blob/7ba9fd298413b79f2d07b6b7a3cdcbc34a9b244d/yolox/data/data_prefetcher.py#L25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants