justchenhao / STANet

official implementation of the spatial-temporal attention neural network (STANet) for remote sensing image change detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

val.py

songtf525 opened this issue · comments

 tmp = np.array(Image.open(L_path), dtype=np.uint32)/255
 L_img = Image.fromarray(tmp)
 transform_L = get_transform(self.opt, transform_params, method=Image.NEAREST, normalize=False,
                                    test=self.istest)
 L = transform_L(L_img)

why L is not same as A and B, and it is an error:

TypeError: Cannot handle this data type

Thankyou for your answers.