DCPDN icon indicating copy to clipboard operation
DCPDN copied to clipboard

create_train.py error

Open noobgrow opened this issue 7 years ago • 2 comments

find some error here

 a = 1 - 0.5 * uniform(0, 1)


        m = gt_image.shape[0]
        n = gt_image.shape[1]

        rep_atmosphere = np.tile(np.reshape(A, [1, 1, 3]), [m, n, 1])

    ...
        h5f.create_dataset('atom',data=rep_atmosphere)


change to:

        a = 1 - 0.5 * uniform(0, 1)


        m = gt_image.shape[0]
        n = gt_image.shape[1]

        rep_atmosphere = np.tile(np.tile(a, [1, 1, 3]), [m, n, 1])



    ...
        h5f.create_dataset('ato',data=rep_atmosphere)

noobgrow avatar Dec 29 '18 08:12 noobgrow

i change it to: a = 1 - 0.5 * uniform(0, 1)

    m = gt_image.shape[0]
    n = gt_image.shape[1]

    rep_atmosphere = np.tile(np.full([1, 1, 3],a), [m, n, 1])



...
    h5f.create_dataset('ato',data=rep_atmosphere)

xieliangru avatar Aug 27 '19 09:08 xieliangru

thx very much. I got confused because the variable A

beijing1214 avatar Jul 09 '20 08:07 beijing1214