You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
For you or anyone else getting a similar error and curious: this happened to me and the reason was that I was calling foo.data.size() on an object foo that was expected to be a PyTorch Tensor, but was actually a NumPy Array (the .data attribute of a numpy array apparently returns a memoryview object).
I wasn't using this library at all, but the advice is generic enough that it might still be useful to anyone searching for this error message
When I run train.py python train.py --datacfg cfg/ape.data --modelcfg cfg/yolo-pose.cfg --initweightfile backup/ape/init.weights
i got this error AttributeError: 'memoryview' object has no attribute 'size'
The text was updated successfully, but these errors were encountered: