-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from hslu-abiz/refactoring
Finished Refactoring
- Loading branch information
Showing
33 changed files
with
537 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
data | ||
data/* | ||
data/*/* | ||
tmp | ||
tmp/* | ||
profiler | ||
profiler/* | ||
profiler_env/* | ||
core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.h5 filter=lfs diff=lfs merge=lfs -text | ||
*.jpg filter=lfs diff=lfs merge=lfs -text | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.pdf filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM tensorflow/tensorflow:2.4.0-gpu | ||
|
||
RUN apt-get update && apt-get install -y apt-transport-https | ||
RUN apt-get install -y libtcmalloc-minimal4 | ||
RUN apt-get install -y sox | ||
|
||
RUN apt install -y libsndfile1 | ||
RUN apt install -y libsm6 libxext6 libxrender-dev | ||
|
||
RUN pip install --upgrade pip | ||
|
||
WORKDIR /tf | ||
|
||
RUN mkdir /assets | ||
|
||
COPY requirements.txt /assets/requirements.txt | ||
RUN pip install -r /assets/requirements.txt --upgrade --no-cache-dir | ||
|
||
COPY . /tf/ | ||
|
||
RUN ./scripts/install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
version: "3.2" | ||
services: | ||
train_object_detection: | ||
build: . | ||
volumes: | ||
- ${PWD}:/tf/ | ||
working_dir: /tf | ||
command: bash -c "./scripts/train_object_detection.sh" | ||
devices: | ||
- /dev/nvidia0 | ||
environment: | ||
NVIDIA_VISIBLE_DEVICES: 0 | ||
EPOCHS: 70 | ||
BATCH_SIZE: 8 | ||
MODEL_TO_LOAD: None | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- capabilities: [ gpu ] | ||
|
||
predict_object_detection: | ||
build: . | ||
volumes: | ||
- ${PWD}:/tf/ | ||
working_dir: /tf | ||
command: bash -c "./scripts/predict_object_detection.sh" | ||
devices: | ||
- /dev/nvidia0 | ||
environment: | ||
NVIDIA_VISIBLE_DEVICES: 0 | ||
WEIGHTS_PATH: None | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- capabilities: [ gpu ] | ||
|
||
sound_generation: | ||
build: . | ||
volumes: | ||
- ${PWD}:/tf/ | ||
working_dir: /tf | ||
command: bash -c "./scripts/sound_generation.sh" | ||
devices: | ||
- /dev/nvidia0 | ||
environment: | ||
NVIDIA_VISIBLE_DEVICES: 0 | ||
WEIGHTS_PATH: None | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- capabilities: [ gpu ] | ||
|
||
evaluation: | ||
build: . | ||
volumes: | ||
- ${PWD}:/tf/ | ||
working_dir: /tf | ||
command: bash -c "./scripts/evaluation.sh" | ||
devices: | ||
- /dev/nvidia0 | ||
environment: | ||
NVIDIA_VISIBLE_DEVICES: 0 | ||
WEIGHTS_PATH: None | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- capabilities: [ gpu ] |
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
python==3.8.0 | ||
numpy==1.19.5 | ||
pandas==1.2.4 | ||
scikit-learn==0.24.2 | ||
matplotlib==3.4.2 | ||
scipy==1.6.3 | ||
sox==1.4.0 | ||
ffmpeg==4.3.1 | ||
ffmpeg-python==0.2.0 | ||
numpy | ||
pandas | ||
scikit-learn | ||
matplotlib | ||
scipy | ||
Pillow | ||
sox | ||
ffmpeg | ||
ffmpeg-python | ||
scaper==1.6.5 | ||
tensorflow==2.5.0 | ||
cudatoolkit==11.0.221 | ||
tensorflow-addons==0.13.0 | ||
pillow==7.1.2 | ||
cityscapesscripts==2.2.0 | ||
tensorflow>=2.5.0 | ||
tensorflow-addons>=0.13.0 | ||
cityscapesscripts==2.2.0 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 python -m soundscape_generation.evaluation --weights $WEIGHTS_PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apt-get update | ||
|
||
apt-get -y install git | ||
apt-get -y install libav-tools | ||
apt-get -y install libsndfile1-dev | ||
apt-get -y install libsndfile1 | ||
apt-get -y install libcupti-dev | ||
|
||
pip install --upgrade pip | ||
pip install -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 python -m soundscape_generation.predict --weights $WEIGHTS_PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 python -m soundscape_generation.sound_generation --weights $WEIGHTS_PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 python -m soundscape_generation.train --num_epochs $EPOCHS --batch_size $BATCH_SIZE --model_to_load $MODEL_TO_LOAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,8 +29,8 @@ def parse_requirements(filename): | |
|
||
README_MD = open(join(dirname(abspath(__file__)), "README.md")).read() | ||
|
||
setup(name='soundscape-generation', | ||
version=get_version('soundscape-generation/__init__.py'), | ||
setup(name='soundscape_generation', | ||
version=get_version('soundscape_generation/__init__.py'), | ||
author='ABIZ Lab', | ||
author_email='[email protected]', | ||
description='Generate soundscapes based on images.', | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.