zhijian-liu / torchpack

A neural network training interface based on PyTorch, with a focus on flexibility
https://pypi.org/project/torchpack/
MIT License
61 stars 15 forks source link

Package not intialized #37

Closed dvando closed 2 years ago

dvando commented 2 years ago

HI Zhijian, found out you might forget to import all the packages in init.py. image

I imported them manually in the init.py file. image

Or is there any reason why did you leave the packages unimported? Anyway, thanks for the good work!

zhijian-liu commented 2 years ago

Thanks, @dvando! These packages are not required to be imported in my use cases (by from torchpack.abc import xyz). Could you please provide an example that requires these packages being imported? Thank you!

dvando commented 2 years ago

It was when I tried to use the bevfusion, I encountered the error "module 'torchpack' has no attribute 'utils'", I checked the module and found out that I just needed to reinitialize it. p.s: It's the first time I'm using torchpack.

zhijian-liu commented 2 years ago

Thanks! Would you mind submitting a PR for this issue?

dvando commented 2 years ago

Sure, I'll close this issue too, thanks @zhijian-liu !