Skip to content

How can i install this on mac mini m4? #2551

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

Open
oksurya opened this issue Apr 13, 2025 · 3 comments
Open

How can i install this on mac mini m4? #2551

oksurya opened this issue Apr 13, 2025 · 3 comments

Comments

@oksurya
Copy link

oksurya commented Apr 13, 2025

tell me please

@duanxiaosheng
Copy link

安装后推理有问题,找了三天都没找到解决方法

@Tps-F
Copy link
Member

Tps-F commented Apr 14, 2025

@duanxiaosheng Can you tell me what specific errors you see?
I have modified this project to work with Apple Silicon.

@duanxiaosheng
Copy link

您能告诉我您看到了哪些具体错误吗?我已修改此项目以使用 Apple Silicon。

使用推理时报错,尝试很多方法无法修复
2025-04-12 01:07:51 | WARNING | infer.modules.vc.modules | Traceback (most recent call last):
File "/Users/lvxiaodong/Desktop/RVC/Retrieval-based-Voice-Conversion-WebUI/infer/modules/vc/modules.py", line 172, in vc_single
self.hubert_model = load_hubert(self.config)
File "/Users/lvxiaodong/Desktop/RVC/Retrieval-based-Voice-Conversion-WebUI/infer/modules/vc/utils.py", line 23, in load_hubert
models, _, _ = checkpoint_utils.load_model_ensemble_and_task(
File "/opt/miniconda3/lib/python3.9/site-packages/fairseq/checkpoint_utils.py", line 425, in load_model_ensemble_and_task
state = load_checkpoint_to_cpu(filename, arg_overrides)
File "/opt/miniconda3/lib/python3.9/site-packages/fairseq/checkpoint_utils.py", line 315, in load_checkpoint_to_cpu
state = torch.load(f, map_location=torch.device("cpu"))
File "/opt/miniconda3/lib/python3.9/site-packages/torch/serialization.py", line 1470, in load
raise pickle.UnpicklingError(_get_wo_message(str(e))) from None
_pickle.UnpicklingError: Weights only load failed. This file can still be loaded, to do so you have two options, do those steps only if you trust the source of the checkpoint.
(1) In PyTorch 2.6, we changed the default value of the argument in from to . Re-running with set to will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.
(2) Alternatively, to load with please check the recommended steps in the following error message.
WeightsUnpickler error: Unsupported global: GLOBAL fairseq.data.dictionary.Dictionary was not an allowed global by default. Please use or the context manager to allowlist this global if you trust this class/function.weights_onlytorch.loadFalseTruetorch.loadweights_onlyFalseweights_only=Truetorch.serialization.add_safe_globals([Dictionary])torch.serialization.safe_globals([Dictionary])

Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html.

Traceback (most recent call last):
File "/opt/miniconda3/lib/python3.9/site-packages/gradio/queueing.py", line 407, in call_prediction
output = await route_utils.call_process_api(
File "/opt/miniconda3/lib/python3.9/site-packages/gradio/route_utils.py", line 226, in call_process_api
output = await app.get_blocks().process_api(
File "/opt/miniconda3/lib/python3.9/site-packages/gradio/blocks.py", line 1559, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "/opt/miniconda3/lib/python3.9/site-packages/gradio/blocks.py", line 1447, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "/opt/miniconda3/lib/python3.9/site-packages/gradio/components/audio.py", line 341, in postprocess
file_path = self.audio_to_temp_file(
File "/opt/miniconda3/lib/python3.9/site-packages/gradio/components/base.py", line 336, in audio_to_temp_file
temp_dir = Path(self.DEFAULT_TEMP_DIR) / self.hash_bytes(data.tobytes())
AttributeError: 'NoneType' object has no attribute 'tobytes'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants