cszn / DnCNN

Beyond a Gaussian Denoiser: Residual Learning of Deep CNN for Image Denoising (TIP, 2017)
https://cszn.github.io/
1.47k stars 539 forks source link

error in main_train.py #46

Closed SufianIrshad closed 6 years ago

SufianIrshad commented 6 years ago

after successfully running the data_generator.py code. when i run the code of main_train.py it shows the following error

File "C:\Users\Sufian\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/Sufian/Desktop/dncnn_keras/main_train.py", line 69 x = BatchNormalization(axis=3, momentum=0.0,epsilon=0.0001, name = 'bn'+str(layer_count))(x) ^ TabError: inconsistent use of tabs and spaces in indentation

SufianIrshad commented 6 years ago

problem solved. now the training code is running. the error was due to the inconsistent use of tabs and spaces in indentation.. the following article helped me. https://medium.com/@peey/what-is-the-inconsistent-use-of-tabs-and-spaces-in-indentation-error-and-why-is-it-caused-f3bbb8b2568b