Skip to content

Prb with MuseScore in docker #246

@goliom

Description

@goliom

Hi,
i've compiled a docker image for UltraSinger with Nvidia support, that i use in a docker compose environment.

Nearly all is working except that i have a problem telling me that MuseScore is not installed or version is unknown.

I used Docker Desktop on windows 11 with Portainer plugin. I used the actual main source code ([Merge pull #232) to compile, the only modification I made was in the requirement.txt (modifying whisperx @ git+https://github.com/m-bain/whisperx.git@44e8bf5bb658ad6e1a80585b987fae2d48b9662c#egg=whisperx)

Here is a sample log of a use of the docker image :

/app/UltraSinger/src$ python3 /app/UltraSinger/src/UltraSinger.py -o /app/UltraSinger/src/output --whisper_compute_type int8 --disable_hyphenation --language fr -i https://youtu.be/0c_BWzmDRpU?si=cqXRkaMOK2QLKOet
/app/UltraSinger/.venv/lib/python3.10/site-packages/transformers/utils/hub.py:124: FutureWarning: Using `TRANSFORMERS_CACHE` is deprecated and will be removed in v5 of Transformers. Use `HF_HOME` instead.
  warnings.warn(
2025-04-29 08:45:19.413147: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2025-04-29 08:45:19.909034: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2025-04-29 08:45:20.790213: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT

[UltraSinger] ********************************
[UltraSinger] UltraSinger Version: 0.0.13-dev8
[UltraSinger] ********************************
[UltraSinger] Checking GPU support.
[UltraSinger] Found GPU: NVIDIA GeForce GTX 1080 Ti VRAM: 11.0 GB.
[UltraSinger] pytorch - using cuda gpu.
2025-04-29 08:45:22.467503: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:984] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2025-04-29 08:45:22.472190: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:984] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2025-04-29 08:45:22.472224: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:984] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
[UltraSinger] tensorflow - using cuda gpu.
[UltraSinger] ----------------------
[UltraSinger] FFmpeg - using /usr/bin/ffmpeg
[UltraSinger] FFprobe - using /usr/bin/ffprobe
[UltraSinger] ----------------------
[UltraSinger] Option: Hyphenation will not be applied
[UltraSinger] Full Automatic Mode
[youtube] Extracting URL: https://youtu.be/0c_BWzmDRpU?si=cqXRkaMOK2QLKOet
[youtube] 0c_BWzmDRpU: Downloading webpage
[youtube] 0c_BWzmDRpU: Downloading tv client config
[youtube] 0c_BWzmDRpU: Downloading player 8102da6c
[youtube] 0c_BWzmDRpU: Downloading tv player API JSON
[youtube] 0c_BWzmDRpU: Downloading ios player API JSON
WARNING: [youtube] 0c_BWzmDRpU: Signature extraction failed: Some formats may be missing
[youtube] 0c_BWzmDRpU: Downloading m3u8 information
[UltraSinger] Found data on Musicbrainz: Artist=Claude Lombard Title=Laura ou la passion du théâtre
[UltraSinger] Found year: 2001
[UltraSinger] Found cover image
[UltraSinger] Creating output folder. -> /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre
[UltraSinger] Downloading Audio
[youtube] Extracting URL: https://youtu.be/0c_BWzmDRpU?si=cqXRkaMOK2QLKOet
[youtube] 0c_BWzmDRpU: Downloading webpage
[youtube] 0c_BWzmDRpU: Downloading tv client config
[youtube] 0c_BWzmDRpU: Downloading player 8102da6c
[youtube] 0c_BWzmDRpU: Downloading tv player API JSON
[youtube] 0c_BWzmDRpU: Downloading ios player API JSON
WARNING: [youtube] 0c_BWzmDRpU: Signature extraction failed: Some formats may be missing
[youtube] 0c_BWzmDRpU: Downloading m3u8 information
[info] 0c_BWzmDRpU: Downloading 1 format(s): 234
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 39
[download] Destination: /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/Claude Lombard - Laura ou la passion du théâtre
[download] 100% of    3.17MiB in 00:00:01 at 2.70MiB/s
[ExtractAudio] Destination: /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/Claude Lombard - Laura ou la passion du théâtre.mp3
Deleting original file /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/Claude Lombard - Laura ou la passion du théâtre (pass -k to keep)
[UltraSinger] Downloading Video
[youtube] Extracting URL: https://youtu.be/0c_BWzmDRpU?si=cqXRkaMOK2QLKOet
[youtube] 0c_BWzmDRpU: Downloading webpage
[youtube] 0c_BWzmDRpU: Downloading tv client config
[youtube] 0c_BWzmDRpU: Downloading player 8102da6c
[youtube] 0c_BWzmDRpU: Downloading tv player API JSON
[youtube] 0c_BWzmDRpU: Downloading ios player API JSON
WARNING: [youtube] 0c_BWzmDRpU: Signature extraction failed: Some formats may be missing
[youtube] 0c_BWzmDRpU: Downloading m3u8 information
[info] 0c_BWzmDRpU: Downloading 1 format(s): 231
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 39
[download] Destination: /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/Claude Lombard - Laura ou la passion du théâtre.mp4
[download] 100% of    7.08MiB in 00:00:01 at 5.71MiB/s
[FixupM3u8] Fixing MPEG-TS in MP4 container of "/app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/Claude Lombard - Laura ou la passion du théâtre.mp4"
[UltraSinger] BPM is 126.05
[UltraSinger] Creating output folder. -> /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/cache
[UltraSinger] Separating vocals from audio with demucs with model htdemucs and cuda as worker.
Selected model is a bag of 1 models. You will see that many progress bars per track.
Separated tracks will be stored in /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/cache/separated/htdemucs
Separating track /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/Claude Lombard - Laura ou la passion du théâtre.mp3
100%|██████████████████████████████████████████████████████████████████████| 204.75/204.75 [00:06<00:00, 30.65seconds/s]
[UltraSinger] Reduce noise from vocal audio with ffmpeg.
[UltraSinger] Converting audio for AI
[UltraSinger] Mute audio parts with no singing
[UltraSinger] Loading whisper with model large-v2 and cuda as worker
>>Performing voice activity detection using Pyannote...
Lightning automatically upgraded your loaded checkpoint from v1.5.4 to v2.3.3. To apply the upgrade to your files permanently, run `python -m pytorch_lightning.utilities.upgrade_checkpoint ../.venv/lib/python3.10/site-packages/whisperx/assets/pytorch_model.bin`
Model was trained with pyannote.audio 0.0.1, yours is 3.3.2. Bad things might happen unless you revert pyannote.audio to 0.x.
Model was trained with torch 1.10.0+cu102, yours is 2.3.0+cu121. Bad things might happen unless you revert torch to 1.x.
[UltraSinger] Transcribing /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/cache/Claude Lombard - Laura ou la passion du théâtre_mute.wav
[UltraSinger] Removing silent parts from transcription data
[UltraSinger] Pitching with crepe and model full and cuda as worker
2025-04-29 08:46:35.765524: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:984] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2025-04-29 08:46:35.765641: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:984] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2025-04-29 08:46:35.765677: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:984] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2025-04-29 08:46:35.765872: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:984] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2025-04-29 08:46:35.765918: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:984] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2025-04-29 08:46:35.765937: I tensorflow/core/common_runtime/gpu/gpu_device.cc:2019] Could not identify NUMA node of platform GPU id 0, defaulting to 0.  Your kernel may not have been built with NUMA support.
2025-04-29 08:46:35.766011: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:984] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2025-04-29 08:46:35.766442: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1928] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 8683 MB memory:  -> device: 0, name: NVIDIA GeForce GTX 1080 Ti, pci bus id: 0000:01:00.0, compute capability: 6.1
2025-04-29 08:46:48.589663: I external/local_xla/xla/stream_executor/cuda/cuda_driver.cc:1566] failed to allocate 8.48GiB (9104785408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory
2025-04-29 08:46:58.014867: I external/local_xla/xla/stream_executor/cuda/cuda_driver.cc:1566] failed to allocate 7.63GiB (8194306560 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1745916430.292573     139 service.cc:145] XLA service 0x7fad0801bab0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
I0000 00:00:1745916430.292626     139 service.cc:153]   StreamExecutor device (0): NVIDIA GeForce GTX 1080 Ti, Compute Capability 6.1
2025-04-29 08:47:10.309567: I tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc:268] disabling MLIR crash reproducer, set env var `MLIR_CRASH_REPRODUCER_DIRECTORY` to enable.
2025-04-29 08:47:10.353135: I external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:465] Loaded cuDNN version 8907
2025-04-29 08:47:14.867266: E external/local_xla/xla/service/slow_operation_alarm.cc:65] Trying algorithm eng12{k11=2} for conv (f32[32,256,16,1]{3,2,1,0}, u8[0]{0}) custom-call(f32[32,128,79,1]{3,2,1,0}, f32[256,128,64,1]{3,2,1,0}, f32[256]{0}), window={size=64x1}, dim_labels=bf01_oi01->bf01, custom_call_target="__cudnn$convBiasActivationForward", backend_config={"operation_queue_id":"0","wait_on_operation_queues":[],"cudnn_conv_backend_config":{"conv_result_scale":1,"activation_mode":"kRelu","side_input_scale":0,"leakyrelu_alpha":0}} is taking a while...
2025-04-29 08:47:15.083099: E external/local_xla/xla/service/slow_operation_alarm.cc:133] The operation took 1.215974351s
Trying algorithm eng12{k11=2} for conv (f32[32,256,16,1]{3,2,1,0}, u8[0]{0}) custom-call(f32[32,128,79,1]{3,2,1,0}, f32[256,128,64,1]{3,2,1,0}, f32[256]{0}), window={size=64x1}, dim_labels=bf01_oi01->bf01, custom_call_target="__cudnn$convBiasActivationForward", backend_config={"operation_queue_id":"0","wait_on_operation_queues":[],"cudnn_conv_backend_config":{"conv_result_scale":1,"activation_mode":"kRelu","side_input_scale":0,"leakyrelu_alpha":0}} is taking a while...
2025-04-29 08:47:15.167315: W external/local_tsl/tsl/framework/bfc_allocator.cc:296] Allocator (GPU_0_bfc) ran out of memory trying to allocate 17.31GiB with freed_by_count=0. The caller indicates that this is not a failure, but this may mean that there could be performance gains if more memory were available.
I0000 00:00:1745916435.298688     139 device_compiler.h:188] Compiled cluster using XLA!  This line is logged at most once for the lifetime of the process.
633/638 ━━━━━━━━━━━━━━━━━━━━ 0s 10ms/step2025-04-29 08:47:22.661154: W external/local_tsl/tsl/framework/bfc_allocator.cc:296] Allocator (GPU_0_bfc) ran out of memory trying to allocate 72.11GiB with freed_by_count=0. The caller indicates that this is not a failure, but this may mean that there could be performance gains if more memory were available.
2025-04-29 08:47:24.961087: W external/local_tsl/tsl/framework/bfc_allocator.cc:296] Allocator (GPU_0_bfc) ran out of memory trying to allocate 16.77GiB with freed_by_count=0. The caller indicates that this is not a failure, but this may mean that there could be performance gains if more memory were available.
638/638 ━━━━━━━━━━━━━━━━━━━━ 15s 15ms/step
[UltraSinger] Creating midi_segments
[UltraSinger] Converting wav to mp3. -> /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/Claude Lombard - Laura ou la passion du théâtre [Instrumental].mp3
[UltraSinger] Converting wav to mp3. -> /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/Claude Lombard - Laura ou la passion du théâtre [Vocals].mp3
[UltraSinger] Using UltraStar Format Version 1.2.0
[UltraSinger] Creating UltraStar file /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/Claude Lombard - Laura ou la passion du théâtre.txt
[UltraSinger] Calculating silence parts for linebreaks.
[UltraSinger] Parse ultrastar txt -> /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/Claude Lombard - Laura ou la passion du théâtre.txt
[UltraSinger] Calculating Ultrastar Points
[UltraSinger] Simple (octave high ignored) points
[UltraSinger] Total: 8953, notes: 8125, line bonus: 828, golden notes: 0
[UltraSinger] Accurate (octave high matches) points:
[UltraSinger] Total: 8936, notes: 8110, line bonus: 826, golden notes: 0
[UltraSinger] Creating Midi with pretty_midi
[UltraSinger] Creating midi instrument
[UltraSinger] Creating midi file -> /app/UltraSinger/src/output/Claude Lombard - Laura ou la passion du théâtre/Claude Lombard - Laura ou la passion du théâtre.mid
[UltraSinger] Creating music sheet with MuseScore
[UltraSinger] **MuseScore is not installed or version is unknown**

[UltraSinger] Do you like UltraSinger? Want it to be even better? Then help with your support!
[UltraSinger] See project page -> https://github.com/rakuri255/UltraSinger
[UltraSinger] This will help a lot to keep this project alive and improved.
I have no name!@05d6f3ea4686:/app/UltraSinger/src$

Here is the docker compose I use in portainer:

services:
    ultrasinger:
        deploy:
            resources:
                reservations:
                    devices:
                        - driver: nvidia
                          count: all
                          capabilities:
                              - gpu
        stdin_open: true
        tty: true
        container_name: UltraSinger3
        volumes:
            -  K:\applications\ultrasinger\out:/app/UltraSinger/src/output
        image: ultrasinger
        environment:
            - PGID=568
            - PUID=568
            - TZ=Europe/Paris
            - HF_HOME=/app/UltraSinger/src/output
            - MPLCONFIGDIR=/app/UltraSinger/src/output
            - TRANSFORMERS_CACHE=/app/UltraSinger/src/output
            - SENTENCE_TRANSFORMERS_HOME=/app/UltraSinger/src/output
            - TORCH_HOME=/app/UltraSinger/src/output

Any idea on how i can resolve the MuseScore problem ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions