justchenhao / STANet

official implementation of the spatial-temporal attention neural network (STANet) for remote sensing image change detection
BSD 2-Clause "Simplified" License
419 stars 110 forks source link

val.py #39

Closed songtf525 closed 4 years ago

songtf525 commented 4 years ago
 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.