Update README.md
Browse files
README.md
CHANGED
@@ -40,20 +40,8 @@ image=cv2.resize(image, (224, 224)) #224 is the default image size
|
|
40 |
image=image.image.max() #Normalize the image to [0-1]
|
41 |
prediction=model.predict(image)
|
42 |
prediction=np.argmax(prediction, axis=-1) #Get Highest probability class
|
43 |
-
|
44 |
```
|
45 |
-
<h1>On Training</h1><br>
|
46 |
-
```ruby
|
47 |
-
model=PaViT.PaViT()
|
48 |
-
#Output means the unit default is 15 and activation 'sigmoid'
|
49 |
-
#Output_class default is None so it uses Dense layer as the output_layer
|
50 |
-
#Ouptut_class is the output layer
|
51 |
-
p_model=model.model(output_class=None, activation='softmax', output=15)
|
52 |
-
p_model.summary()
|
53 |
-
p_model.compile(...)
|
54 |
-
p_model.fit(...)
|
55 |
|
56 |
-
```
|
57 |
<h1>Prediction on Test data</h1>
|
58 |
<img src='https://huggingface.co/Ajibola/PaViT/blob/main/test.png' alt='evaluated predictions'>
|
59 |
|
|
|
40 |
image=image.image.max() #Normalize the image to [0-1]
|
41 |
prediction=model.predict(image)
|
42 |
prediction=np.argmax(prediction, axis=-1) #Get Highest probability class
|
|
|
43 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
|
|
45 |
<h1>Prediction on Test data</h1>
|
46 |
<img src='https://huggingface.co/Ajibola/PaViT/blob/main/test.png' alt='evaluated predictions'>
|
47 |
|