langnico / GRAINet

8 stars 4 forks source link

FCN_grainsize not working #2

Closed ElhananH closed 2 years ago

ElhananH commented 2 years ago

Hi, this code looks very promising! I'm new to python, so I hope my question is just a technical problem. I downloaded all packages according to the instructions, except the tensorflow which didn't work so I installed with pip. First, in the 'resnet_archetecture' script I needed to import BatchNormalization by 'from tensorflow.keras.layers import BatchNormalization ' and not as in the original script because in the new Keras package the function is called 'batch_normalizaition'.
However, when the code runs 'run_train(args)' , I receive an error- "TypeError: 'module' object is not callable". Do you have a clue what the problem can be? Thanks Elhanan