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
run demo.py error: File "/home/user/STEP/data/customize.py", line 105, in read_images return np.stack(images, axis=0) raise ValueError('all input arrays must have the same shape') ValueError: all input arrays must have the same shape
#6
Open
yangzhegithub opened this issue
Jan 14, 2020
· 4 comments
I met the same problem.
In my problem, it is the image name not started from 0. When read one image which is not exist, and read annother image which is exist, there will be the error. Two numpy arrray is not the same shape.
So I modify the name of images, then everything is ok.
I had used a previously prepared set of frames , so I had modified my file
name format and working directories. I traced the source of the error to
the file data/customize.py, where the line that opened the image at the name given in the following line was failing.
img_name = os.path.join(self.data_root, videoname, self.im_format
% max(0, int(p)))
Apart from fixing my folders, I also changed the 0 to 1, because my image
sequences did not start from zero.
No description provided.
The text was updated successfully, but these errors were encountered: