hezhangsprinter / DCPDN

Densely Connected Pyramid Dehazing Network (CVPR'2018)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

create_train.py error

noobgrow opened this issue · comments

commented

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)

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)

thx very much. I got confused because the variable A