Skip to content

Commit

Permalink
[sound-spleeter] Using GPU.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturgontijo committed May 15, 2020
1 parent e365f1c commit 40450e0
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions docs/users_guide/sound-spleeter.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ You can also call the service from SingularityNET CLI (`snet`).
Assuming that you have an open channel to this service:

```
$ snet client call --save-field vocals vocals.wav snet sound-spleeter default_group spleeter '{"audio_url": "http://54.203.198.53:7000/Resources/audio_example.mp3"}'
$ snet client call --save-field vocals vocals.wav snet sound-spleeter default_group spleeter '{"audio_url": "https://bh.singularitynet:7000/Resources/audio_example.mp3"}'
Price for this call will be 0.00000001 AGI (use -y to remove this warning). Proceed? (y/n): y
```

Expand All @@ -43,9 +43,9 @@ The WAV audio file will be saved in `vocals.wav`!

Inputs:

- `audio`: [Slow Motion Dream by Steven M Bryant](http://54.203.198.53:7000/Resources/audio_example.mp3)
- `audio`: [Slow Motion Dream by Steven M Bryant](https://bh.singularitynet.io:7000/Resources/audio_example.mp3)

Response:

- `audio bytes array`: [Vocals](http://54.203.198.53:7000/Resources/vocals.wav)
- `audio bytes array`: [Accompaniment](http://54.203.198.53:7000/Resources/accompaniment.wav)
- `audio bytes array`: [Vocals](https://bh.singularitynet.io:7000/Resources/vocals.wav)
- `audio bytes array`: [Accompaniment](https://bh.singularitynet.io:7000/Resources/accompaniment.wav)
2 changes: 1 addition & 1 deletion services/i3d-video-action-recognition/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from service import registry

TEST_URL = "http://54.203.198.53:7000/Resources/v_PlayingGuitar_g03_c01.avi"
TEST_URL = "https://bh.singularitynet.io:7000/Resources/v_PlayingGuitar_g03_c01.avi"

if __name__ == "__main__":

Expand Down
2 changes: 1 addition & 1 deletion services/s2vt-video-captioning/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from service import registry

TEST_URL = "http://54.203.198.53:7000/Resources/v_PlayingGuitar_g03_c01.avi"
TEST_URL = "https://bh.singularitynet.io:7000/Resources/v_PlayingGuitar_g03_c01.avi"

if __name__ == "__main__":

Expand Down
4 changes: 2 additions & 2 deletions services/sound-spleeter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Local (testing purpose):
```
$ python3 test_service.py
Endpoint (localhost:7003):
Audio (URL): http://54.203.198.53:7000/Resources/audio_example.mp3
Audio (URL): https://bh.singularitynet.io:7000/Resources/audio_example.mp3
{'vocals': '...', 'accomp': '...'}
```

Expand All @@ -102,7 +102,7 @@ Through SingularityNET (follow this [link](https://dev.singularitynet.io/tutoria
Assuming that you have an open channel to this service:

```
$ snet client call snet sound-spleeter default_group spleeter '{"audio_url": "http://54.203.198.53:7000/Resources/audio_example.mp3"}'
$ snet client call snet sound-spleeter default_group spleeter '{"audio_url": "https://bh.singularitynet.io:7000/Resources/audio_example.mp3"}'
...
Read call params from cmdline...
Expand Down
2 changes: 1 addition & 1 deletion services/sound-spleeter/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
grpcio>=1.14.2
grpcio-tools>=1.14.1
requests==2.20.0
spleeter-gpu
spleeter-gpu==1.5.1
pydub==0.23.1
2 changes: 1 addition & 1 deletion services/sound-spleeter/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from service import registry

TEST_URL = "http://54.203.198.53:7000/Resources/audio_example.mp3"
TEST_URL = "https://bh.singularitynet.io:7000/Resources/audio_example.mp3"

if __name__ == "__main__":

Expand Down
4 changes: 2 additions & 2 deletions utils/get_cntk_models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ if [ -f "${FILE}" ]
then
echo "${FILE} found, skipping.."
else
wget --no-check-certificate http://54.203.198.53:7000/PreTrainedDNNModels/Image/cntk-image-recon/${DOGS_RESNET152}
wget --no-check-certificate https://bh.singularitynet.io:7000/PreTrainedDNNModels/Image/cntk-image-recon/${DOGS_RESNET152}
fi

FILE="${FLOWERS_RESNET152}"
if [ -f "${FILE}" ]
then
echo "${FILE} found, skipping.."
else
wget --no-check-certificate http://54.203.198.53:7000/PreTrainedDNNModels/Image/cntk-image-recon/${FLOWERS_RESNET152}
wget --no-check-certificate https://bh.singularitynet.io:7000/PreTrainedDNNModels/Image/cntk-image-recon/${FLOWERS_RESNET152}
fi
4 changes: 2 additions & 2 deletions utils/get_colorize_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ if [ -f "${FILE}" ]
then
echo "${FILE} found, skipping.."
else
wget --no-check-certificate http://54.203.198.53:7000/PreTrainedDNNModels/Image/deoldify-colorizer/${FILE}
wget --no-check-certificate https://bh.singularitynet.io:7000/PreTrainedDNNModels/Image/deoldify-colorizer/${FILE}
fi

FILE="${WATERMARK}"
if [ -f "${FILE}" ]
then
echo "${FILE} found, skipping.."
else
wget --no-check-certificate http://54.203.198.53:7000/PreTrainedDNNModels/Image/deoldify-colorizer/${FILE}
wget --no-check-certificate https://bh.singularitynet.io:7000/PreTrainedDNNModels/Image/deoldify-colorizer/${FILE}
fi
2 changes: 1 addition & 1 deletion utils/get_voice_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ -f "${FILE}" ]
then
echo "${FILE} found, skipping.."
else
wget --no-check-certificate http://54.203.198.53:7000/PreTrainedDNNModels/Voice/real-time-voice-cloning/${MODEL_FILENAME}
wget --no-check-certificate https://bh.singularitynet.io:7000/PreTrainedDNNModels/Voice/real-time-voice-cloning/${MODEL_FILENAME}
fi

unzip -o "${MODEL_FILENAME}"
4 changes: 2 additions & 2 deletions utils/get_yolov3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ if [ -f "${FILE}" ]
then
echo "${FILE} found, skipping.."
else
wget --no-check-certificate http://54.203.198.53:7000/PreTrainedDNNModels/Image/yolov3-object-detection/yolov3.weights
wget --no-check-certificate https://bh.singularitynet.io:7000/PreTrainedDNNModels/Image/yolov3-object-detection/yolov3.weights
fi

FILE="yolov3.cfg"
if [ -f "${FILE}" ]
then
echo "${FILE} found, skipping.."
else
wget --no-check-certificate http://54.203.198.53:7000/PreTrainedDNNModels/Image/yolov3-object-detection/yolov3.cfg
wget --no-check-certificate https://bh.singularitynet.io:7000/PreTrainedDNNModels/Image/yolov3-object-detection/yolov3.cfg
fi

0 comments on commit 40450e0

Please sign in to comment.