From 40450e04e978c5a67cfa57ac10bd0162c43cc0b1 Mon Sep 17 00:00:00 2001 From: Artur Gontijo Date: Fri, 15 May 2020 10:18:28 -0300 Subject: [PATCH] [sound-spleeter] Using GPU. --- docs/users_guide/sound-spleeter.md | 8 ++++---- services/i3d-video-action-recognition/test_service.py | 2 +- services/s2vt-video-captioning/test_service.py | 2 +- services/sound-spleeter/README.md | 4 ++-- services/sound-spleeter/requirements.txt | 2 +- services/sound-spleeter/test_service.py | 2 +- utils/get_cntk_models.sh | 4 ++-- utils/get_colorize_model.sh | 4 ++-- utils/get_voice_model.sh | 2 +- utils/get_yolov3.sh | 4 ++-- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/users_guide/sound-spleeter.md b/docs/users_guide/sound-spleeter.md index f09af01d..da972fd2 100644 --- a/docs/users_guide/sound-spleeter.md +++ b/docs/users_guide/sound-spleeter.md @@ -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 ``` @@ -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) diff --git a/services/i3d-video-action-recognition/test_service.py b/services/i3d-video-action-recognition/test_service.py index 5d794db2..5dbaa160 100644 --- a/services/i3d-video-action-recognition/test_service.py +++ b/services/i3d-video-action-recognition/test_service.py @@ -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__": diff --git a/services/s2vt-video-captioning/test_service.py b/services/s2vt-video-captioning/test_service.py index 86420244..28434811 100644 --- a/services/s2vt-video-captioning/test_service.py +++ b/services/s2vt-video-captioning/test_service.py @@ -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__": diff --git a/services/sound-spleeter/README.md b/services/sound-spleeter/README.md index d73b8307..9959d701 100644 --- a/services/sound-spleeter/README.md +++ b/services/sound-spleeter/README.md @@ -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': '...'} ``` @@ -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... diff --git a/services/sound-spleeter/requirements.txt b/services/sound-spleeter/requirements.txt index 24e2c658..070b7590 100644 --- a/services/sound-spleeter/requirements.txt +++ b/services/sound-spleeter/requirements.txt @@ -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 \ No newline at end of file diff --git a/services/sound-spleeter/test_service.py b/services/sound-spleeter/test_service.py index 379aaec5..9ad7cdbf 100644 --- a/services/sound-spleeter/test_service.py +++ b/services/sound-spleeter/test_service.py @@ -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__": diff --git a/utils/get_cntk_models.sh b/utils/get_cntk_models.sh index c28d3862..d47f1ad4 100755 --- a/utils/get_cntk_models.sh +++ b/utils/get_cntk_models.sh @@ -18,7 +18,7 @@ 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}" @@ -26,5 +26,5 @@ 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 \ No newline at end of file diff --git a/utils/get_colorize_model.sh b/utils/get_colorize_model.sh index 945a47ec..ce57eb4a 100755 --- a/utils/get_colorize_model.sh +++ b/utils/get_colorize_model.sh @@ -15,7 +15,7 @@ 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}" @@ -23,5 +23,5 @@ 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 diff --git a/utils/get_voice_model.sh b/utils/get_voice_model.sh index bd44f059..279066c4 100755 --- a/utils/get_voice_model.sh +++ b/utils/get_voice_model.sh @@ -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}" diff --git a/utils/get_yolov3.sh b/utils/get_yolov3.sh index 256d5559..fb4a7299 100755 --- a/utils/get_yolov3.sh +++ b/utils/get_yolov3.sh @@ -15,7 +15,7 @@ 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" @@ -23,5 +23,5 @@ 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 \ No newline at end of file