RNN-for-Human-Activity-Recognition-using-2D-Pose-Input
RNN-for-Human-Activity-Recognition-using-2D-Pose-Input copied to clipboard
AttributeError: 'range' object has no attribute 'remove'
Hi~ I'm faced with problem in extract_batch_size.
_unsampled is range!! but 'range' object has no attribute 'remove'
how do I fix it?
I fixed it
unsampled_indices = range(0, len(X_train)) ----> unsampled_indices = list(range(0, len(X_train)))
Hi, This solution isn't working for me. Anybody please help
It does work. Just make sure all the instances of unsampled_indices being initialised to range are converted to list first.
I also faced the same issue and this solution by @Snehal-Reddy works fine.
met similar error: AttributeError: 'range' object has no attribute 'ndim'
np.array(range(x))
works, thanks above.
fixed in this PR https://github.com/stuarteiffert/RNN-for-Human-Activity-Recognition-using-2D-Pose-Input/pull/31
list = list(range(N1, N2)). Just add 'list' function