opPointNet.step() utils.writeErrToScreen('point', pointErrs, epoch, j) utils.writeErrToScreen('normal', normalErrs, epoch, j) utils.writeErrToScreen('meanAngle', meanAngleErrs, epoch, j) utils.writeErrToScreen('medianAngle', medianAngleErrs, epoch, j) utils.writeErrToFile('point', pointErrs, trainingLog, epoch, j) utils.writeErrToFile('normal', normalErrs, trainingLog, epoch, j) utils.writeErrToFile('meanAngle', meanAngleErrs, trainingLog, epoch, j) utils.writeErrToFile('medianAngle', medianAngleErrs, trainingLog, epoch, j) pointErrsNpList = np.concatenate( [pointErrsNpList, utils.turnErrorIntoNumpy(pointErrs)], axis=0) normalErrsNpList = np.concatenate( [normalErrsNpList, utils.turnErrorIntoNumpy(normalErrs)], axis=0) meanAngleErrsNpList = np.concatenate( [meanAngleErrsNpList, utils.turnErrorIntoNumpy(meanAngleErrs)], axis=0) medianAngleErrsNpList = np.concatenate( [medianAngleErrsNpList, utils.turnErrorIntoNumpy(medianAngleErrs)], axis=0) if j < 1000: utils.writeNpErrToScreen( 'pointAccu', np.mean(pointErrsNpList[1:j + 1, :], axis=0),
utils.writeErrToScreen('imgEnv', imgEnvErrs, epoch, j) utils.writeErrToScreen('env', envErrs, epoch, j) utils.writeErrToFile('albedo', albedoErrs, testingLog, epoch, j) utils.writeErrToFile('normal', normalErrs, testingLog, epoch, j) utils.writeErrToFile('rough', roughErrs, testingLog, epoch, j) utils.writeErrToFile('depth', depthErrs, testingLog, epoch, j) utils.writeErrToFile('globalIllu1', globalIllu1Errs, testingLog, epoch, j) utils.writeErrToFile('globalIllu2', globalIllu2Errs, testingLog, epoch, j) utils.writeErrToFile('globalIllu3', globalIllu3Errs, testingLog, epoch, j) utils.writeErrToFile('imgEnv', imgEnvErrs, testingLog, epoch, j) utils.writeErrToFile('env', envErrs, testingLog, epoch, j) albedoErrsNpList = np.concatenate( [albedoErrsNpList, utils.turnErrorIntoNumpy(albedoErrs)], axis=0) normalErrsNpList = np.concatenate( [normalErrsNpList, utils.turnErrorIntoNumpy(normalErrs)], axis=0) roughErrsNpList = np.concatenate( [roughErrsNpList, utils.turnErrorIntoNumpy(roughErrs)], axis=0) depthErrsNpList = np.concatenate( [depthErrsNpList, utils.turnErrorIntoNumpy(depthErrs)], axis=0) globalIllu1ErrsNpList = np.concatenate( [globalIllu1ErrsNpList, utils.turnErrorIntoNumpy(globalIllu1Errs)], axis=0) globalIllu2ErrsNpList = np.concatenate( [globalIllu2ErrsNpList, utils.turnErrorIntoNumpy(globalIllu2Errs)],
# Output testing error utils.writeErrToScreen('directErrs', directErrs, epoch, j) utils.writeErrToScreen('globalIllu2', globalIllu2Errs, epoch, j) utils.writeErrToScreen('globalIllu3', globalIllu3Errs, epoch, j) utils.writeErrToScreen('renderErrs', renderErrs, epoch, j) utils.writeErrToScreen('renderGtErrs', renderGtErrs, epoch, j) utils.writeErrToFile('directErrs', directErrs, testingLog, epoch, j) utils.writeErrToFile('globalIllu2', globalIllu2Errs, testingLog, epoch, j) utils.writeErrToFile('globalIllu3', globalIllu3Errs, testingLog, epoch, j) utils.writeErrToFile('renderErrs', renderErrs, testingLog, epoch, j) utils.writeErrToFile('renderGtErrs', renderGtErrs, testingLog, epoch, j) directErrsNpList = np.concatenate( [directErrsNpList, utils.turnErrorIntoNumpy(directErrs) ], axis=0) globalIllu2ErrsNpList = np.concatenate( [globalIllu2ErrsNpList, utils.turnErrorIntoNumpy(globalIllu2Errs)], axis=0) globalIllu3ErrsNpList = np.concatenate( [globalIllu3ErrsNpList, utils.turnErrorIntoNumpy(globalIllu3Errs)], axis=0) renderErrsNpList = np.concatenate( [renderErrsNpList, utils.turnErrorIntoNumpy(renderErrs)], axis=0 ) renderGtErrsNpList = np.concatenate( [renderGtErrsNpList, utils.turnErrorIntoNumpy(renderGtErrs)], axis=0 ) utils.writeNpErrToScreen('globalIllu2_Accu:', np.mean(globalIllu2ErrsNpList[1:j+1, :], axis=0), epoch, j) utils.writeNpErrToScreen('globalIllu3_Accu:', np.mean(globalIllu3ErrsNpList[1:j+1, :], axis=0), epoch, j) utils.writeNpErrToScreen('directErrs_Accu:', np.mean(directErrsNpList[1:j+1, :], axis=0), epoch, j) utils.writeNpErrToScreen('renderErrs_Accu:', np.mean(renderErrsNpList[1:j+1, :], axis=0), epoch, j) utils.writeNpErrToScreen('renderGtErrs_Accu:', np.mean(renderGtErrsNpList[1:j+1, :], axis=0), epoch, j) utils.writeNpErrToFile('globalIllu2_Accu:', np.mean(globalIllu2ErrsNpList[1:j+1, :], axis=0), testingLog, epoch, j) utils.writeNpErrToFile('globalIllu3_Accu:', np.mean(globalIllu3ErrsNpList[1:j+1, :], axis=0), testingLog, epoch, j) utils.writeNpErrToFile('directErrs_Accu:', np.mean(directErrsNpList[1:j+1, :], axis=0), testingLog, epoch, j) utils.writeNpErrToFile('renderErrs_Accu:', np.mean(renderErrsNpList[1:j+1, :], axis=0), testingLog, epoch, j)
utils.writeErrToScreen('globalIllu2', globalIllu2Errs, epoch, j) utils.writeErrToScreen('globalIllu3', globalIllu3Errs, epoch, j) utils.writeErrToScreen('imgEnv', imgEnvErrs, epoch, j) utils.writeErrToScreen('env', envErrs, epoch, j) utils.writeErrToFile('albedo', albedoErrs, trainingLog, epoch, j) utils.writeErrToFile('normal', normalErrs, trainingLog, epoch, j) utils.writeErrToFile('rough', roughErrs, trainingLog, epoch, j) utils.writeErrToFile('depth', depthErrs, trainingLog, epoch, j) utils.writeErrToFile('globalIllu1', globalIllu1Errs, trainingLog, epoch, j) utils.writeErrToFile('globalIllu2', globalIllu2Errs, trainingLog, epoch, j) utils.writeErrToFile('globalIllu3', globalIllu3Errs, trainingLog, epoch, j) utils.writeErrToFile('imgEnv', imgEnvErrs, trainingLog, epoch, j) utils.writeErrToFile('env', envErrs, trainingLog, epoch, j) albedoErrsNpList = np.concatenate( [albedoErrsNpList, utils.turnErrorIntoNumpy(albedoErrs)], axis=0) normalErrsNpList = np.concatenate( [normalErrsNpList, utils.turnErrorIntoNumpy(normalErrs)], axis=0) roughErrsNpList = np.concatenate( [roughErrsNpList, utils.turnErrorIntoNumpy(roughErrs)], axis=0) depthErrsNpList = np.concatenate( [depthErrsNpList, utils.turnErrorIntoNumpy(depthErrs)], axis=0) globalIllu1ErrsNpList = np.concatenate( [globalIllu1ErrsNpList, utils.turnErrorIntoNumpy(globalIllu1Errs)], axis=0) globalIllu2ErrsNpList = np.concatenate( [globalIllu2ErrsNpList, utils.turnErrorIntoNumpy(globalIllu2Errs)], axis=0) globalIllu3ErrsNpList = np.concatenate( [globalIllu3ErrsNpList, utils.turnErrorIntoNumpy(globalIllu3Errs)], axis=0) imgEnvErrsNpList = np.concatenate( [imgEnvErrsNpList, utils.turnErrorIntoNumpy(imgEnvErrs)], axis=0) envErrsNpList = np.concatenate( [envErrsNpList, utils.turnErrorIntoNumpy(envErrs)], axis=0) if j < 1000: utils.writeNpErrToScreen('albedoAccu', np.mean(albedoErrsNpList[1:j+1, :], axis=0), epoch, j) utils.writeNpErrToScreen('normalAccu', np.mean(normalErrsNpList[1:j+1, :], axis=0), epoch, j) utils.writeNpErrToScreen('roughAccu', np.mean(roughErrsNpList[1:j+1, :], axis=0), epoch, j)
# Output training error utils.writeErrToScreen('albedo', albedoErrs, epoch, j) utils.writeErrToScreen('normal', normalErrs, epoch, j) utils.writeErrToScreen('rough', roughErrs, epoch, j) utils.writeErrToScreen('depth', depthErrs, epoch, j) utils.writeErrToScreen('globalIllu1', globalIllu1Errs, epoch, j) utils.writeErrToFile('albedo', albedoErrs, trainingLog, epoch, j) utils.writeErrToFile('normal', normalErrs, trainingLog, epoch, j) utils.writeErrToFile('rough', roughErrs, trainingLog, epoch, j) utils.writeErrToFile('depth', depthErrs, trainingLog, epoch, j) utils.writeErrToFile('globalIllu1', globalIllu1Errs, trainingLog, epoch, j) albedoErrsNpList = np.concatenate( [albedoErrsNpList, utils.turnErrorIntoNumpy(albedoErrs)], axis=0) normalErrsNpList = np.concatenate( [normalErrsNpList, utils.turnErrorIntoNumpy(normalErrs)], axis=0) roughErrsNpList = np.concatenate( [roughErrsNpList, utils.turnErrorIntoNumpy(roughErrs)], axis=0) depthErrsNpList = np.concatenate( [depthErrsNpList, utils.turnErrorIntoNumpy(depthErrs)], axis=0) globalIllu1ErrsNpList = np.concatenate( [globalIllu1ErrsNpList, utils.turnErrorIntoNumpy(globalIllu1Errs)], axis=0) if j < 1000:
totalErr = g2W * globalIllu2ErrSum + g3W * globalIllu3ErrSum totalErr.backward() opGlobalIllu1to2.step() opGlobalIllu2to3.step() # Output training error utils.writeErrToScreen('globalIllu2', globalIllu2Errs, epoch, j) utils.writeErrToScreen('globalIllu3', globalIllu3Errs, epoch, j) utils.writeErrToFile('globalIllu2', globalIllu2Errs, trainingLog, epoch, j) utils.writeErrToFile('globalIllu3', globalIllu3Errs, trainingLog, epoch, j) globalIllu2ErrsNpList = np.concatenate( [globalIllu2ErrsNpList, utils.turnErrorIntoNumpy(globalIllu2Errs)], axis=0) globalIllu3ErrsNpList = np.concatenate( [globalIllu3ErrsNpList, utils.turnErrorIntoNumpy(globalIllu3Errs)], axis=0) if j < 1000: utils.writeNpErrToScreen( 'globalIllu2_Accu:', np.mean(globalIllu2ErrsNpList[1:j + 1, :], axis=0), epoch, j) utils.writeNpErrToScreen( 'globalIllu3_Accu', np.mean(globalIllu3ErrsNpList[1:j + 1, :], axis=0), epoch, j) utils.writeNpErrToFile( 'globalIllu2_Accu',
segAllBatch.expand_as(depthBatch)) / pixelAllNum) # Output training error utils.writeErrToScreen('albedo', albedoErrs, epoch, j) utils.writeErrToScreen('normal', normalErrs, epoch, j) utils.writeErrToScreen('rough', roughErrs, epoch, j) utils.writeErrToScreen('depth', depthErrs, epoch, j) utils.writeErrToFile('albedo', albedoErrs, testingLog, epoch, j) utils.writeErrToFile('normal', normalErrs, testingLog, epoch, j) utils.writeErrToFile('rough', roughErrs, testingLog, epoch, j) utils.writeErrToFile('depth', depthErrs, testingLog, epoch, j) albedoErrsNpList = np.concatenate( [albedoErrsNpList, utils.turnErrorIntoNumpy(albedoErrs)], axis=0) normalErrsNpList = np.concatenate( [normalErrsNpList, utils.turnErrorIntoNumpy(normalErrs)], axis=0) roughErrsNpList = np.concatenate( [roughErrsNpList, utils.turnErrorIntoNumpy(roughErrs)], axis=0) depthErrsNpList = np.concatenate( [depthErrsNpList, utils.turnErrorIntoNumpy(depthErrs)], axis=0) utils.writeNpErrToScreen('albedoAccu', np.mean(albedoErrsNpList[1:j + 1, :], axis=0), epoch, j) utils.writeNpErrToScreen('normalAccu', np.mean(normalErrsNpList[1:j + 1, :], axis=0), epoch, j) utils.writeNpErrToScreen('roughAccu',
opNormal.step() opRough.step() opDepth.step() # Output training error utils.writeErrToScreen('albedo', [albedoErr], epoch, j ) utils.writeErrToScreen('normal', [normalErr], epoch, j ) utils.writeErrToScreen('rough', [roughErr], epoch, j) utils.writeErrToScreen('depth', [depthErr], epoch, j) utils.writeErrToFile('albedo', [albedoErr], trainingLog, epoch, j) utils.writeErrToFile('normal', [normalErr], trainingLog, epoch, j) utils.writeErrToFile('rough', [roughErr], trainingLog, epoch, j) utils.writeErrToFile('depth', [depthErr], trainingLog, epoch, j) albedoErrsNpList = np.concatenate( [albedoErrsNpList, utils.turnErrorIntoNumpy( [albedoErr] )], axis=0) normalErrsNpList = np.concatenate( [normalErrsNpList, utils.turnErrorIntoNumpy( [normalErr] )], axis=0) roughErrsNpList = np.concatenate( [roughErrsNpList, utils.turnErrorIntoNumpy( [roughErr] )], axis=0) depthErrsNpList = np.concatenate( [depthErrsNpList, utils.turnErrorIntoNumpy( [depthErr] )], axis=0) if j < 1000: utils.writeNpErrToScreen('albedoAccu', np.mean(albedoErrsNpList[1:j+1, :], axis=0), epoch, j ) utils.writeNpErrToScreen('normalAccu', np.mean(normalErrsNpList[1:j+1, :], axis=0), epoch, j ) utils.writeNpErrToScreen('roughAccu', np.mean(roughErrsNpList[1:j+1, :], axis=0), epoch, j ) utils.writeNpErrToScreen('depthAccu', np.mean(depthErrsNpList[1:j+1, :], axis=0), epoch, j ) utils.writeNpErrToFile('albedoAccu', np.mean(albedoErrsNpList[1:j+1, :], axis=0), trainingLog, epoch, j) utils.writeNpErrToFile('normalAccu', np.mean(normalErrsNpList[1:j+1, :], axis=0), trainingLog, epoch, j) utils.writeNpErrToFile('roughAccu', np.mean(roughErrsNpList[1:j+1, :], axis=0), trainingLog, epoch, j) utils.writeNpErrToFile('depthAccu', np.mean(depthErrsNpList[1:j+1, :], axis=0), trainingLog, epoch, j) else:
(medianAngle_gtToPred + medianAngle_predToGt)) utils.writeErrToScreen('point', pointErrs, epoch, j) utils.writeErrToScreen('metro', metroErrs, epoch, j) utils.writeErrToScreen('normal', normalErrs, epoch, j) utils.writeErrToScreen('meanAngle', meanAngleErrs, epoch, j) utils.writeErrToScreen('medianAngle', medianAngleErrs, epoch, j) utils.writeErrToFile('point', pointErrs, testingLog, epoch, j) utils.writeErrToFile('metro', metroErrs, testingLog, epoch, j) utils.writeErrToFile('normal', normalErrs, testingLog, epoch, j) utils.writeErrToFile('meanAngle', meanAngleErrs, testingLog, epoch, j) utils.writeErrToFile('medianAngle', medianAngleErrs, testingLog, epoch, j) pointErrsNpList = np.concatenate( [pointErrsNpList, utils.turnErrorIntoNumpy(pointErrs)], axis=0) metroErrsNpList = np.concatenate( [metroErrsNpList, utils.turnErrorIntoNumpy(metroErrs)], axis=0) normalErrsNpList = np.concatenate( [normalErrsNpList, utils.turnErrorIntoNumpy(normalErrs)], axis=0) meanAngleErrsNpList = np.concatenate( [meanAngleErrsNpList, utils.turnErrorIntoNumpy(meanAngleErrs)], axis=0) medianAngleErrsNpList = np.concatenate( [medianAngleErrsNpList, utils.turnErrorIntoNumpy(medianAngleErrs)], axis=0) utils.writeNpErrToScreen('pointAccu', np.mean(pointErrsNpList[1:j + 1, :], axis=0),
opDepth.step() # Output training error utils.writeErrToScreen('albedo', [albedoErr], epoch, j) utils.writeErrToScreen('normal', [normalErr], epoch, j) utils.writeErrToScreen('rough', [roughErr], epoch, j) utils.writeErrToScreen('depth', [depthErr], epoch, j) utils.writeErrToFile('albedo', [albedoErr], trainingLog, epoch, j) utils.writeErrToFile('normal', [normalErr], trainingLog, epoch, j) utils.writeErrToFile('rough', [roughErr], trainingLog, epoch, j) utils.writeErrToFile('depth', [depthErr], trainingLog, epoch, j) albedoErrsNpList = np.concatenate( [albedoErrsNpList, utils.turnErrorIntoNumpy([albedoErr])], axis=0) normalErrsNpList = np.concatenate( [normalErrsNpList, utils.turnErrorIntoNumpy([normalErr])], axis=0) roughErrsNpList = np.concatenate( [roughErrsNpList, utils.turnErrorIntoNumpy([roughErr])], axis=0) depthErrsNpList = np.concatenate( [depthErrsNpList, utils.turnErrorIntoNumpy([depthErr])], axis=0) if j < 1000: utils.writeNpErrToScreen( 'albedoAccu', np.mean(albedoErrsNpList[1:j + 1, :], axis=0), epoch, j) utils.writeNpErrToScreen(
depthErrs.append( torch.sum( (torch.log(depthPreds[n] + 1e-3) - torch.log(depthBatch + 1e-3 ) ) * ( torch.log(depthPreds[n] + 1e-3 ) - torch.log(depthBatch + 1e-3 ) ) * segAllBatch.expand_as(depthBatch ) ) / pixelAllNum ) # Output testing error utils.writeErrToScreen('albedo', albedoErrs, epoch, j) utils.writeErrToScreen('normal', normalErrs, epoch, j) utils.writeErrToScreen('rough', roughErrs, epoch, j) utils.writeErrToScreen('depth', depthErrs, epoch, j) utils.writeErrToFile('albedo', albedoErrs, testingLog, epoch, j) utils.writeErrToFile('normal', normalErrs, testingLog, epoch, j) utils.writeErrToFile('rough', roughErrs, testingLog, epoch, j) utils.writeErrToFile('depth', depthErrs, testingLog, epoch, j) albedoErrsNpList = np.concatenate( [albedoErrsNpList, utils.turnErrorIntoNumpy(albedoErrs)], axis=0 ) normalErrsNpList = np.concatenate( [normalErrsNpList, utils.turnErrorIntoNumpy(normalErrs)], axis=0 ) roughErrsNpList = np.concatenate( [roughErrsNpList, utils.turnErrorIntoNumpy(roughErrs)], axis=0 ) depthErrsNpList = np.concatenate( [depthErrsNpList, utils.turnErrorIntoNumpy(depthErrs)], axis=0 ) utils.writeNpErrToScreen('albedoAccu', np.mean(albedoErrsNpList[1:j+1, :], axis=0), epoch, j ) utils.writeNpErrToScreen('normalAccu', np.mean(normalErrsNpList[1:j+1, :], axis=0), epoch, j ) utils.writeNpErrToScreen('roughAccu', np.mean(roughErrsNpList[1:j+1, :], axis=0), epoch, j ) utils.writeNpErrToScreen('depthAccu', np.mean(depthErrsNpList[1:j+1, :], axis=0), epoch, j ) utils.writeNpErrToFile('albedoAccu', np.mean(albedoErrsNpList[1:j+1, :], axis=0), testingLog, epoch, j ) utils.writeNpErrToFile('normalAccu', np.mean(normalErrsNpList[1:j+1, :], axis=0), testingLog, epoch, j ) utils.writeNpErrToFile('roughAccu', np.mean(roughErrsNpList[1:j+1, :], axis=0), testingLog, epoch, j ) utils.writeNpErrToFile('depthAccu', np.mean(depthErrsNpList[1:j+1, :], axis=0), testingLog, epoch, j ) if j == 1 or j% 2000 == 0:
utils.writeErrToScreen('meanAngle2', meanAngle2Errs, epoch, j) utils.writeErrToScreen('rendered', renderedErrs, epoch, j) utils.writeErrToFile('normal1', normal1Errs, trainingLog, epoch, j) utils.writeErrToFile('medianAngle1', medianAngle1Errs, trainingLog, epoch, j) utils.writeErrToFile('meanAngle1', meanAngle1Errs, trainingLog, epoch, j) utils.writeErrToFile('normal2', normal2Errs, trainingLog, epoch, j) utils.writeErrToFile('medianAngle2', medianAngle2Errs, trainingLog, epoch, j) utils.writeErrToFile('meanAngle2', meanAngle2Errs, trainingLog, epoch, j) utils.writeErrToFile('rendered', renderedErrs, trainingLog, epoch, j) normal1ErrsNpList = np.concatenate( [normal1ErrsNpList, utils.turnErrorIntoNumpy(normal1Errs)], axis=0) medianAngle1ErrsNpList = np.concatenate( [medianAngle1ErrsNpList, utils.turnErrorIntoNumpy(medianAngle1Errs)], axis=0) meanAngle1ErrsNpList = np.concatenate( [meanAngle1ErrsNpList, utils.turnErrorIntoNumpy(meanAngle1Errs)], axis=0) normal2ErrsNpList = np.concatenate( [normal2ErrsNpList, utils.turnErrorIntoNumpy(normal2Errs)], axis=0) medianAngle2ErrsNpList = np.concatenate( [medianAngle2ErrsNpList, utils.turnErrorIntoNumpy(medianAngle2Errs)], axis=0)
opNormal.step() opRough.step() opDepth.step() # Output training error utils.writeErrToScreen('albedo', [albedoErr], epoch, j) utils.writeErrToScreen('normal', [normalErr], epoch, j) utils.writeErrToScreen('rough', [roughErr], epoch, j) utils.writeErrToScreen('depth', [depthErr], epoch, j) utils.writeErrToFile('albedo', [albedoErr], trainingLog, epoch, j) utils.writeErrToFile('normal', [normalErr], trainingLog, epoch, j) utils.writeErrToFile('rough', [roughErr], trainingLog, epoch, j) utils.writeErrToFile('depth', [depthErr], trainingLog, epoch, j) albedoErrsNpList = np.concatenate( [albedoErrsNpList, utils.turnErrorIntoNumpy( [albedoErr] )], axis=0) normalErrsNpList = np.concatenate( [normalErrsNpList, utils.turnErrorIntoNumpy( [normalErr] )], axis=0) roughErrsNpList = np.concatenate( [roughErrsNpList, utils.turnErrorIntoNumpy( [roughErr] )], axis=0) depthErrsNpList = np.concatenate( [depthErrsNpList, utils.turnErrorIntoNumpy( [depthErr] )], axis=0) if j < 1000: utils.writeNpErrToScreen('albedoAccu', np.mean(albedoErrsNpList[1:j+1, :], axis=0), epoch, j ) utils.writeNpErrToScreen('normalAccu', np.mean(normalErrsNpList[1:j+1, :], axis=0), epoch, j ) utils.writeNpErrToScreen('roughAccu', np.mean(roughErrsNpList[1:j+1, :], axis=0), epoch, j ) utils.writeNpErrToScreen('depthAccu', np.mean(depthErrsNpList[1:j+1, :], axis=0), epoch, j ) utils.writeNpErrToFile('albedoAccu', np.mean(albedoErrsNpList[1:j+1, :], axis=0), trainingLog, epoch, j) utils.writeNpErrToFile('normalAccu', np.mean(normalErrsNpList[1:j+1, :], axis=0), trainingLog, epoch, j) utils.writeNpErrToFile('roughAccu', np.mean(roughErrsNpList[1:j+1, :], axis=0), trainingLog, epoch, j) utils.writeNpErrToFile('depthAccu', np.mean(depthErrsNpList[1:j+1, :], axis=0), trainingLog, epoch, j) else:
utils.writeErrToScreen('depth', [depthErr], epoch, j) utils.writeErrToScreen('reconstErrors', [reconstErr], epoch, j) utils.writeErrToScreen('renderErrors', [renderErr], epoch, j) utils.writeErrToFile('albedo', [albedoErr], testingLog, epoch, j) utils.writeErrToFile('normal', [normalErr], testingLog, epoch, j) utils.writeErrToFile('rough', [roughErr], testingLog, epoch, j) utils.writeErrToFile('depth', [depthErr], testingLog, epoch, j) utils.writeErrToFile('reconstErrors', [reconstErr], testingLog, epoch, j) utils.writeErrToFile('renderErrors', [renderErr], testingLog, epoch, j) albedoErrsNpList = np.concatenate( [albedoErrsNpList, utils.turnErrorIntoNumpy([albedoErr])], axis=0) normalErrsNpList = np.concatenate( [normalErrsNpList, utils.turnErrorIntoNumpy([normalErr])], axis=0) roughErrsNpList = np.concatenate( [roughErrsNpList, utils.turnErrorIntoNumpy([roughErr])], axis=0) depthErrsNpList = np.concatenate( [depthErrsNpList, utils.turnErrorIntoNumpy([depthErr])], axis=0) reconstErrsNpList = np.concatenate( [reconstErrsNpList, utils.turnErrorIntoNumpy([reconstErr])], axis=0) renderErrsNpList = np.concatenate( [renderErrsNpList,