STEP
STEP copied to clipboard
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
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.
@yushanshan05 thanks.
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.
On Mon, Feb 24, 2020 at 3:21 AM cvyang [email protected] wrote:
@yushanshan05 https://github.com/yushanshan05 thanks.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NVlabs/STEP/issues/6?email_source=notifications&email_token=ABRSN4NI36C7ZUSFZ5G4IX3REN7R7A5CNFSM4KGQKB22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMW6D6Y#issuecomment-590209531, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRSN4N7LOLCYVUTBV3XRD3REN7R7ANCNFSM4KGQKB2Q .
make sure all frames are from same video, This problem happens when frames sizes are different