Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020-028
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2020-028
2020-028
Commits
49714e23
Commit
49714e23
authored
Nov 07, 2020
by
Yasith Nawanjana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update main.py
parent
7af92fe3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
Brain tumour type identification/main.py
Brain tumour type identification/main.py
+9
-4
No files found.
Brain tumour type identification/main.py
View file @
49714e23
...
@@ -15,16 +15,21 @@ def load_brain_tumor_type_model():
...
@@ -15,16 +15,21 @@ def load_brain_tumor_type_model():
model
=
Sequential
()
model
=
Sequential
()
model
.
add
(
Conv2D
(
256
,
(
3
,
3
),
input_shape
=
(
50
,
50
,
1
)))
model
.
add
(
Conv2D
(
512
,
(
5
,
5
),
input_shape
=
(
50
,
50
,
1
)))
model
.
add
(
Activation
(
'relu'
))
model
.
add
(
Activation
(
'relu'
))
model
.
add
(
MaxPooling2D
(
pool_size
=
(
2
,
2
)))
model
.
add
(
MaxPooling2D
(
pool_size
=
(
2
,
2
)))
#The first CNN layer followed by Relu and MaxPooling layers
#The first CNN layer followed by Relu and MaxPooling layers
model
.
add
(
Conv2D
(
128
,
(
3
,
3
)))
model
.
add
(
Conv2D
(
256
,
(
3
,
3
)))
model
.
add
(
Activation
(
'relu'
))
model
.
add
(
Activation
(
'relu'
))
model
.
add
(
MaxPooling2D
(
pool_size
=
(
2
,
2
)))
model
.
add
(
MaxPooling2D
(
pool_size
=
(
2
,
2
)))
#The second convolution layer followed by Relu and MaxPooling layers
#The second convolution layer followed by Relu and MaxPooling layers
model
.
add
(
Conv2D
(
128
,
(
3
,
3
)))
model
.
add
(
Activation
(
'relu'
))
model
.
add
(
MaxPooling2D
(
pool_size
=
(
2
,
2
)))
#The third convolution layer followed by Relu and MaxPooling layers
model
.
add
(
Flatten
())
model
.
add
(
Flatten
())
model
.
add
(
Dropout
(
0.5
))
model
.
add
(
Dropout
(
0.5
))
#Flatten layer to stack the output convolutions from second convolution layer
#Flatten layer to stack the output convolutions from second convolution layer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment