yelusaleng / RRU-Net

Official repository for "RRU-Net: The Ringed Residual U-Net for Image Splicing Forgery Detection" (CVPRW 2019)
107 stars 18 forks source link

BUG #33

Open cynwh-ai opened 1 year ago

cynwh-ai commented 1 year ago
    for i, b in enumerate(batch(train, batch_size)):
        start_batch = time.time()
        imgs = np.array([i[0] for i in b]).astype(np.float32)
        true_masks = np.array([i[1] for i in b]).astype(np.float32) / 255.

您好!将CASIA2数据集按照论文里的表述修改后,出现了ValueError: could not broadcast input array from shape (256,256,4) into shape (256,256)这个错误,请问这是什么问题,恳请指教,谢谢!

yelusaleng commented 1 year ago

您好,错误很明显了,你的数组shape不对呀

cynwh-ai commented 1 year ago

感谢回复,按您说的改好,已经成功运行了,谢谢!

lzJune commented 1 year ago

你好我也有这个疑惑,请问是怎么改的,求指教 @cynwh-ai

cynwh-ai commented 1 year ago

改变groundtruth位深度即可

xiong76 commented 1 year ago

改变groundtruth位深度即可

请问在哪里改啊,谢谢