Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DeconvBFNet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
daep
DeconvBFNet
Commits
dbfed818
Commit
dbfed818
authored
3 years ago
by
Wagner Gonçalves Pinto
Browse files
Options
Downloads
Patches
Plain Diff
Add script files for installation and minimal case for a complete run
parent
2fe49bd5
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
templates/install.sh
+11
-0
11 additions, 0 deletions
templates/install.sh
templates/minimal.sh
+43
-0
43 additions, 0 deletions
templates/minimal.sh
with
54 additions
and
0 deletions
templates/install.sh
0 → 100755
+
11
−
0
View file @
dbfed818
#!/bin/bash
# Script with the installation of the dependencies using conda.
# Adapt your conda and deconvnet repository paths if necessary
.
"
${
HOME
}
/anaconda3/etc/profile.d/conda.sh"
LIB_FOLDER
=
"
${
HOME
}
/dev/deeplearning/deconvnet"
# this will create a deconvnet env on conda default folder
# you may add flag `--prefix <desired path>` to change it
conda
env
create
-f
"
${
LIB_FOLDER
}
/conda_env.yml"
--verbose
\ No newline at end of file
This diff is collapsed.
Click to expand it.
templates/minimal.sh
0 → 100755
+
43
−
0
View file @
dbfed818
#!/bin/bash
# Script with an example of a complete training procedure, from
# database generation to testing. On a quad-core notebook it
# should take about 7 minutes to run all commands. Generate data around
# 90 Mb of data (database + test files).
# Adapt your conda env name and deconvnet repository paths if necessary
# starting conda and the env
.
"
${
HOME
}
/anaconda3/etc/profile.d/conda.sh"
LIB_FOLDER
=
"
${
HOME
}
/dev/deeplearning/deconvnet"
conda activate deconvnet
date
echo
"=========="
echo
"Generating the databases (2000 Hz, 1 to 5 incoherent sources)..."
sizes
=(
1000 200 10
)
names
=(
'training'
'validation'
'testing'
)
for
i
in
"
${
!names[@]
}
"
do
echo
${
names
[i]
}
python
"
${
LIB_FOLDER
}
/generate.py"
\
-n
=
${
sizes
[i]
}
-max
=
5
-workers
=
4
-filename
=
${
names
[i]
}
done
echo
"=========="
echo
"Launching the training..."
python
"
${
LIB_FOLDER
}
/train.py"
\
-epochs
=
100
\
-database_format
=
'{:}_f02000Hz.npz'
echo
"=========="
echo
"Testing the trained model..."
python
"
${
LIB_FOLDER
}
/test.py"
\
-experiment_folder
=
"test"
\
-case_name
=
"testing"
\
-database_format
=
'{:}_f02000Hz.npz'
\
-workers
=
4
echo
"=========="
date
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