Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J 07
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
0
Merge Requests
0
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
22_23-J 07
22_23-J 07
Commits
586358b8
Commit
586358b8
authored
Feb 07, 2023
by
Ekanayake G.B.E.M.K
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Train Xception model
parent
6efa4c3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
33 deletions
+10
-33
Disease Detection - IT19956718/disease-classifier.ipynb
Disease Detection - IT19956718/disease-classifier.ipynb
+10
-33
No files found.
Disease Detection - IT19956718/disease-classifier.ipynb
View file @
586358b8
...
...
@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count":
8
,
"execution_count":
1
,
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -40,7 +40,7 @@
},
{
"cell_type": "code",
"execution_count":
9
,
"execution_count":
2
,
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -101,32 +101,9 @@
},
{
"cell_type": "code",
"execution_count":
10
,
"execution_count":
null
,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Found 4015 images belonging to 5 classes.\n",
"Found 1001 images belonging to 5 classes.\n"
]
},
{
"data": {
"text/plain": [
"{'Caterpillars': 0,\n",
" 'DryingofLeaflets': 1,\n",
" 'Flaccidity': 2,\n",
" 'Leaflets': 3,\n",
" 'Yellowing leaf': 4}"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"train_generator, validation_generator = image_data_generator()\n",
"train_generator.class_indices"
...
...
@@ -134,7 +111,7 @@
},
{
"cell_type": "code",
"execution_count":
11
,
"execution_count":
null
,
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -192,7 +169,7 @@
" \n",
" self.model = model\n",
" # self.model.summary()\n",
"\n",
"
#Train xception model
\n",
" def train(self):\n",
" callback = tf.keras.callbacks.EarlyStopping(\n",
" monitor='val_loss', \n",
...
...
@@ -252,7 +229,7 @@
},
{
"cell_type": "code",
"execution_count":
12
,
"execution_count":
null
,
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -262,7 +239,7 @@
},
{
"cell_type": "code",
"execution_count":
13
,
"execution_count":
null
,
"metadata": {},
"outputs": [
{
...
...
@@ -301,7 +278,7 @@
},
{
"cell_type": "code",
"execution_count":
14
,
"execution_count":
null
,
"metadata": {},
"outputs": [
{
...
...
@@ -363,7 +340,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4
(tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)]
"
"version": "3.10.4"
},
"orig_nbformat": 4,
"vscode": {
...
...
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