Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
22_23-J 65
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 65
22_23-J 65
Commits
78a3dad9
Commit
78a3dad9
authored
Jan 31, 2023
by
Manukalpani G.S. IT19111698
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Model testing first part added
parent
8b054155
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
0 deletions
+62
-0
Backend/.ipynb_checkpoints/SF_Weed_identification_Finalized-checkpoint.ipynb
...kpoints/SF_Weed_identification_Finalized-checkpoint.ipynb
+31
-0
Backend/SF_Weed_identification_Finalized.ipynb
Backend/SF_Weed_identification_Finalized.ipynb
+31
-0
No files found.
Backend/.ipynb_checkpoints/SF_Weed_identification_Finalized-checkpoint.ipynb
View file @
78a3dad9
...
@@ -523,6 +523,37 @@
...
@@ -523,6 +523,37 @@
"ensemble_output = Average()(model_outputs)\n",
"ensemble_output = Average()(model_outputs)\n",
"ensemble_model = Model(inputs = model_input , outputs = ensemble_output , name = 'ensemble')"
"ensemble_model = Model(inputs = model_input , outputs = ensemble_output , name = 'ensemble')"
]
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"🟩 04 - Model Testing by Make Predictions"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"def load_and_prep_image(filename , img_shape=224):\n",
"\n",
" print('FILe Name type - ', type(filename))\n",
" img = tf.io.read_file(filename)\n",
" print('img 1- ', type(img))\n",
"\n",
" img = tf.image.decode_image(img)\n",
" print('img 2- ', type(img))\n",
" \n",
" img = tf.image.resize(img , size=[img_shape , img_shape])\n",
"\n",
" img = img/255.\n",
"\n",
" return img"
]
}
}
],
],
"metadata": {
"metadata": {
...
...
Backend/SF_Weed_identification_Finalized.ipynb
View file @
78a3dad9
...
@@ -523,6 +523,37 @@
...
@@ -523,6 +523,37 @@
"ensemble_output = Average()(model_outputs)\n",
"ensemble_output = Average()(model_outputs)\n",
"ensemble_model = Model(inputs = model_input , outputs = ensemble_output , name = 'ensemble')"
"ensemble_model = Model(inputs = model_input , outputs = ensemble_output , name = 'ensemble')"
]
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"🟩 04 - Model Testing by Make Predictions"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"def load_and_prep_image(filename , img_shape=224):\n",
"\n",
" print('FILe Name type - ', type(filename))\n",
" img = tf.io.read_file(filename)\n",
" print('img 1- ', type(img))\n",
"\n",
" img = tf.image.decode_image(img)\n",
" print('img 2- ', type(img))\n",
" \n",
" img = tf.image.resize(img , size=[img_shape , img_shape])\n",
"\n",
" img = img/255.\n",
"\n",
" return img"
]
}
}
],
],
"metadata": {
"metadata": {
...
...
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