BiDAlab / DeepFakesON-Phys

43 stars 15 forks source link

cleanup, use vectorisation #2

Open TBourton opened 2 years ago

TBourton commented 2 years ago

Currently, index 0 of C_R/G/B and D_R/G/B are still np.empty values. When running predictions this causes inconsistent and numerically unstable predictions. This PR fixes that issue. Moreover, using numpy vectorisation gives easier to read code + a performance boost.