DARK-art108 / Cotton-Leaf-Disease-Detection

🌿Classify Cotton Leaf Disease Images between Fresh or Diseased using Tensorflow Transfer Learning and Deploy it using a flask web server and Streamlit.🍂
https:// localhost:5001/
MIT License
19 stars 4 forks source link

xception.output gives an error #2

Open AbhishekSharma031295 opened 2 years ago

AbhishekSharma031295 commented 2 years ago

Hi, First of all sorry for writing issue over here.

i was trying to run your code for my cotton leaf images. but an error occurred on line:

NameError Traceback (most recent call last)

in () 11 layer.trainable = False 12 ---> 13 inter = tf.keras.layers.GlobalMaxPooling2D()(xception.output) 14 flatten = tf.keras.layers.Flatten()(inter) 15 output = tf.keras.layers.Dense(4, activation='softmax')(flatten) NameError: name 'xception' is not defined can you please help me.
abrar1515 commented 1 month ago

Hi, First of all sorry for writing issue over here.

i was trying to run your code for my cotton leaf images. but an error occurred on line:

NameError Traceback (most recent call last) in () 11 layer.trainable = False 12 ---> 13 inter = tf.keras.layers.GlobalMaxPooling2D()(xception.output) 14 flatten = tf.keras.layers.Flatten()(inter) 15 output = tf.keras.layers.Dense(4, activation='softmax')(flatten)

NameError: name 'xception' is not defined

can you please help me.

changed (xception.output) with resnet.output