Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Computer Vision Project - Forest fire detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Steiner
Computer Vision Project - Forest fire detection
Commits
f843d9ff
Commit
f843d9ff
authored
2 years ago
by
Julian Steiner
Browse files
Options
Downloads
Patches
Plain Diff
Rename Forsest fire detection jupyter notebook.
parent
9330f51f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/CNN_Classifier.ipynb
+0
-28
0 additions, 28 deletions
src/CNN_Classifier.ipynb
src/Forsest_Fire_Detection_Classifier_CNN.ipynb
+91
-0
91 additions, 0 deletions
src/Forsest_Fire_Detection_Classifier_CNN.ipynb
with
91 additions
and
28 deletions
src/CNN_Classifier.ipynb
deleted
100644 → 0
+
0
−
28
View file @
9330f51f
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Forest Fire Detection"
]
}
],
"metadata": {
"interpreter": {
"hash": "13e3541d03b85ceaf063d7e71217ee3ad84bbbf44e3cdeb9c7705b64f79b50ea"
},
"kernelspec": {
"display_name": "Python 3.10.4 ('cv-project-forest-fire-detection-Hbd8dxwd')",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.10.4"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}
%% Cell type:markdown id: tags:
# Forest Fire Detection
This diff is collapsed.
Click to expand it.
src/Forsest_Fire_Detection_Classifier_CNN.ipynb
0 → 100644
+
91
−
0
View file @
f843d9ff
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Forest Fire Detection"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Import TensorFlow and other libraries"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import os\n",
"import PIL\n",
"import tensorflow as tf\n",
"import pathlib\n",
"\n",
"from tensorflow import keras\n",
"from tensorflow.keras import layers\n",
"from tensorflow.keras.models import Sequential"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"data_dir = pathlib.Path('data')"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"15765"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"image_count = len(list(data_dir.glob(\"*/*\")))\n",
"image_count"
]
}
],
"metadata": {
"interpreter": {
"hash": "13e3541d03b85ceaf063d7e71217ee3ad84bbbf44e3cdeb9c7705b64f79b50ea"
},
"kernelspec": {
"display_name": "Python 3.10.4 ('cv-project-forest-fire-detection-Hbd8dxwd')",
"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.10.4"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}
%% Cell type:markdown id: tags:
# Forest Fire Detection
%% Cell type:markdown id: tags:
## Import TensorFlow and other libraries
%% Cell type:code id: tags:
```
python
import
matplotlib.pyplot
as
plt
import
numpy
as
np
import
os
import
PIL
import
tensorflow
as
tf
import
pathlib
from
tensorflow
import
keras
from
tensorflow.keras
import
layers
from
tensorflow.keras.models
import
Sequential
```
%% Cell type:code id: tags:
```
python
data_dir
=
pathlib
.
Path
(
'
data
'
)
```
%% Cell type:code id: tags:
```
python
image_count
=
len
(
list
(
data_dir
.
glob
(
"
*/*
"
)))
image_count
```
%% Output
15765
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment