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
8ff9e9dc
Commit
8ff9e9dc
authored
Jan 28, 2023
by
Manukalpani G.S. IT19111698
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data successfully added
parent
1e51a539
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1379 additions
and
0 deletions
+1379
-0
Backend/.ipynb_checkpoints/SF_Weed_identification_Finalized-checkpoint.ipynb
...kpoints/SF_Weed_identification_Finalized-checkpoint.ipynb
+1281
-0
Backend/SF_Weed_identification_Finalized.ipynb
Backend/SF_Weed_identification_Finalized.ipynb
+98
-0
No files found.
Backend/.ipynb_checkpoints/SF_Weed_identification_Finalized-checkpoint.ipynb
0 → 100644
View file @
8ff9e9dc
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Backend/SF_Weed_identification_Finalized.ipynb
0 → 100644
View file @
8ff9e9dc
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"✅ 00 - Getting the Data"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#Mounting the Google Drive \n",
"from google.colab import drive\n",
"drive.mount('/content/drive')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"dataset_location = '/content/drive/MyDrive/RP_SmartFarmer/Sandhini Gamage - Weed identification /Dataset/FinalizedWeedDataSet.zip'"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#This will unzipped the dataset\n",
"import zipfile\n",
"zip_ref = zipfile.ZipFile(dataset_location, \"r\")\n",
"zip_ref.extractall()\n",
"zip_ref.close()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#Checking What are the Directories and the Number of Files Available in each Directory\n",
"\n",
"FILE_DIR = '/content/content/Weed Dataset' #Root Folder of the Dataset\n",
"import os\n",
"for dirpath , dirnames , filenames in os.walk(FILE_DIR):\n",
" print(f\"There are {len(dirnames)} directories and {len(filenames)} images in '{dirpath}'.\")"
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"collapsed_sections": [
"Y2jOdgL3j-o8",
"aZreBPlZ4qsv",
"HvDEsB_fj7_7",
"RFJbEeyUlUgn",
"Kel57RxVgizL",
"tP1N1tQL40Wd",
"s5mZEZ6D5Vpn",
"wGDfBTNj5Yko",
"er9YyCUV5snu",
"ILjba2jN-h-X"
],
"provenance": []
},
"gpuClass": "standard",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
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