Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Ceta-CNNs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
Paul Best
Ceta-CNNs
Commits
5fb818ee
Commit
5fb818ee
authored
2 years ago
by
Paul Best
Browse files
Options
Downloads
Patches
Plain Diff
doc fix
parent
a429b659
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_CNN.py
+4
-4
4 additions, 4 deletions
run_CNN.py
with
4 additions
and
4 deletions
run_CNN.py
+
4
−
4
View file @
5fb818ee
...
...
@@ -8,12 +8,12 @@ import pandas as pd
from
tqdm
import
tqdm
import
argparse
parser
=
argparse
.
ArgumentParser
(
description
=
"
Run this script to use a CNN for
inference
on a folder of audio files.
"
)
parser
=
argparse
.
ArgumentParser
(
description
=
"
Run this script to use a CNN for
the detection of cetacean vocalizations
on a folder of audio files.
"
)
parser
.
add_argument
(
'
audio_folder
'
,
type
=
str
,
help
=
'
Path of the folder with audio files to process
'
)
parser
.
add_argument
(
'
specie
'
,
type
=
str
,
help
=
'
Target specie to detect
'
,
choices
=
[
'
megaptera
'
,
'
delphinid
'
,
'
orcinus
'
,
'
physeter
'
,
'
balaenoptera
'
])
parser
.
add_argument
(
'
-lensample
'
,
type
=
float
,
help
=
'
Length of the signal
excerpts to process (sec
)
'
,
default
=
5
),
parser
.
add_argument
(
'
-batch_size
'
,
type
=
int
,
help
=
'
Amount of samples to process at a time
'
,
default
=
32
),
parser
.
add_argument
(
'
-maxPool
'
,
help
=
'
Wether to keep only the maximal prediction of
a
sample or the full sequence
'
,
action
=
'
store_true
'
),
parser
.
add_argument
(
'
-lensample
'
,
type
=
float
,
help
=
'
Length of the signal
for each sample (in seconds
)
'
,
default
=
5
),
parser
.
add_argument
(
'
-batch_size
'
,
type
=
int
,
help
=
'
Amount of samples to process at a time
(usefull for parallel computation using a GPU)
'
,
default
=
32
),
parser
.
add_argument
(
'
-maxPool
'
,
help
=
'
Wether to keep only the maximal prediction of
each
sample or the full sequence
'
,
action
=
'
store_true
'
),
parser
.
add_argument
(
'
-no-maxPool
'
,
dest
=
'
maxPool
'
,
action
=
'
store_false
'
)
parser
.
set_defaults
(
maxPool
=
True
)
args
=
parser
.
parse_args
()
...
...
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