-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error when installing MusicGen Stereo model #81
Comments
Maybe it's a quick fix. Hang on. |
Try updating the add-on. If it complains about a missing python module called soundfile, then click on Install Dependencies. ... and let me know how it goes. |
hi i just tryed to install dependencys and then run the musicgen model and got this : Ensuring: pip
Requirement already satisfied: mediapipe in ./UPBGE_4.1/4.1/python/lib/python3.10/site-packages (0.10.8) Model: facebook/musicgen-stereo-small |
What is your os? |
Kubuntu 23.10 / Linux |
Run this in the Blender text editor, and check the system console what it calls your system:
|
I have no way to test the add-on on Linux, nor have I ever used Linux. Actually, I'm surprised that you're able to run the add-on at all. Anyway, now I've tried to do something about sox(which is not used on Windows). Pls, try it out and let me know if it works. |
well looks like the addon is acting differently on 4.1 and 3.6.1 versions of blender.. Model: facebook/musicgen-stereo-small The above exception was the direct cause of the following exception: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): |
oh well and now the audioLDM 2 models broke with with update XD but bark works |
Properly, it's differences in the installed Python modules in the two versions of Blender. You can try to uninstall the dependencies, then check: |
yeah right because on blender 4.1 the audioLDM2 still works but it broke opn 3.6.1 |
sorry i dont know where this path would be on linux blender-4.0.0\blender-4.0.0-beta+v40.23e3f8f56396-windows.amd64-release\4.0\python\site-packages well its ok lets stop then maybe better because we could do this whole days without you usign linux... |
You can just search fro folders called: site-packages and see if they're located in a blender folder. |
Okay, there are more folders with that name on your computer, you can also check those. Also, you might try Blender instead of the upbge fork, there might be differences between those. |
ok tryed on 4.1 and 3.61 but same results still so i better really stiop this because asd long you dont install super nice linux OS then its maddness for you trying to figure out i think its way too much stress alreadyy i need stop thanks for all the help seetyou wanted ask if you was thinking maybe on adding the shap e 3D generation iin your addon maybe? |
For figuring out your 3.6.1 problem you'll need to google the error message and see if you can find a solution this way: "No module named 'google.protobuf'". |
In the readme, I've made it a requirement to install on Windows, and thereby listed Linux as unsupported. |
hi i just wanetd update this super crazy good addon and try out the new music gen model you added today but i getting this error :
Model: facebook/musicgen-stereo-small
Downloading (…)lve/main/config.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7.75k/7.75k [00:00<00:00, 50.2MB/s]
Downloading model.safetensors: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.22G/1.22G [00:37<00:00, 32.2MB/s]
/home/vuaieo/.local/lib/python3.10/site-packages/torch/nn/utils/weight_norm.py:30: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.")
Downloading (…)neration_config.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 224/224 [00:00<00:00, 2.40MB/s]
Downloading (…)okenizer_config.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20.8k/20.8k [00:00<00:00, 70.4MB/s]
Downloading spiece.model: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 792k/792k [00:00<00:00, 3.33MB/s]
Downloading (…)/main/tokenizer.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.42M/2.42M [00:00<00:00, 7.24MB/s]
Downloading (…)cial_tokens_map.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.20k/2.20k [00:00<00:00, 19.7MB/s]
Traceback (most recent call last):
File "/home/vuaieo/.config/upbge/4.1/scripts/addons/Pallaidium-main/init.py", line 2395, in execute
music = pipe(prompt, forward_params={"max_new_tokens": min(audio_length_in_s*50, 1503)})
File "/home/vuaieo/.local/lib/python3.10/site-packages/transformers/pipelines/text_to_audio.py", line 138, in call
return super().call(text_inputs, **forward_params)
File "/home/vuaieo/.local/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1140, in call
return self.run_single(inputs, preprocess_params, forward_params, postprocess_params)
File "/home/vuaieo/.local/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1147, in run_single
model_outputs = self.forward(model_inputs, **forward_params)
File "/home/vuaieo/.local/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1046, in forward
model_outputs = self._forward(model_inputs, **forward_params)
File "/home/vuaieo/.local/lib/python3.10/site-packages/transformers/pipelines/text_to_audio.py", line 112, in _forward
output = self.model.generate(**model_inputs, **kwargs)
File "/home/vuaieo/.local/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/home/vuaieo/.local/lib/python3.10/site-packages/transformers/models/musicgen/modeling_musicgen.py", line 2319, in generate
input_ids, decoder_delay_pattern_mask = self.decoder.build_delay_pattern_mask(
File "/home/vuaieo/.local/lib/python3.10/site-packages/transformers/models/musicgen/modeling_musicgen.py", line 1077, in build_delay_pattern_mask
torch.ones((bsz, num_codebooks, max_length), dtype=torch.long, device=input_ids.device) * -1
TypeError: ones(): argument 'size' failed to unpack the object at pos 3 with error "type must be tuple of ints,but got float"
Error: Python: Traceback (most recent call last):
File "/home/vuaieo/Desktop/UPBGE_4.1/4.1/python/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/home/vuaieo/.local/lib/python3.10/site-packages/transformers/pipelines/base.py", line 924, in device_placement
yield
File "/home/vuaieo/.local/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1046, in forward
model_outputs = self._forward(model_inputs, **forward_params)
File "/home/vuaieo/.local/lib/python3.10/site-packages/transformers/pipelines/text_to_audio.py", line 112, in _forward
output = self.model.generate(**model_inputs, **kwargs)
File "/home/vuaieo/.local/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/home/vuaieo/.local/lib/python3.10/site-packages/transformers/models/musicgen/modeling_musicgen.py", line 2319, in generate
input_ids, decoder_delay_pattern_mask = self.decoder.build_delay_pattern_mask(
File "/home/vuaieo/.local/lib/python3.10/site-packages/transformers/models/musicgen/modeling_musicgen.py", line 1077, in build_delay_pattern_mask
torch.ones((bsz, num_codebooks, max_length), dtype=torch.long, device=input_ids.device) * -1
TypeError: ones(): argument 'size' failed to unpack the object at pos 3 with error "type must be tuple of ints,but got float"
🖖
The text was updated successfully, but these errors were encountered: