-
Notifications
You must be signed in to change notification settings - Fork 744
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
AttributeError: module 'torch' has no attribute 'compiler' and other various issue #29
Comments
relax bro. make sure to setup your environment properly according to what's in the readme (torch 0.2.1, that particular version of audiocraft, etc.) this is because of how you installed audiocraft. make sure to install the correct version of it and especially your version of xformers. install xformers 0.22.0 and this fixes it. |
Checkout quick start with docker, should works for windows https://github.com/jasonppy/VoiceCraft?tab=readme-ov-file#quickstart |
An update here after I try Docker @jasonppy provided. Yeah I think I am getting exaggerating that one after hours of troubleshooting and it just failed. Let talk about the Docker first. It look pretty complete for Docker setup. Except the Issue 1 and 2 still remained during the process. So I switch back to the conventional one, the one without using Docker. I managed to fix Issue 1 ( wrong folder order ), Issue 2 ( wrong order of environment setup ) and Issue 4 ( basically didn't support in Windows ) in my conventional setup. But now, new issue, 2 actually.
The issue is, I have already attempt wiping 0.0.25.post1 xformers with possibly the FOR THOSE WHO WANT TO KNOW THE SOLUTION FOR ISSUE 1, ISSUE 2 AND ISSUE 4*** Issue 1
first VoiceCraft folder is the folder you Issue 2 that thing, along with Cell 5's stuff ( below ), caused by installation issue. So once you fix your installation it should recognize words like
My investigation find that Issue 4
Man this thing is getting me nightmares. |
The hell... I just casually move on to other fork that got released recently. When I casually Another error will be given instead : I look into the web and cluster.py and find that, And this error show up after this modification:
So, OK.... I think the lore thickened. Probably make me feel like this is more certainly designed for Linux than Windows. |
Thanks for your efforts, I'm unable to test issues regarding windows, but the docker solution seems to work for some people. Thanks for the feedback on audiocraft installation, I have made changes in 991b1fe |
That's make sense. I got to solve But I got this error in the same Cell 7.
Final Cell when you are going to generate
The rest is fine so far with sample .wav. I didn't have time to test more in depth now because school. But yeah I will still assist. |
I am still looking on generation speed and issue stuff. But somehow I realized the Will elaborate more in another new issue once I done playing and collecting more information/issues with this and other forks. |
System
Windows 11
NVIDIA MX130
i5-10210U
12GB RAM
Error Code
Description
Man, it driven me to insanity when almost every stage of inference_tts.ipynb have their own errors. I have tried troubleshooting with my knowledge about Python package, and compatibility issues with the rest. Here is what I have counted:
Unclear instruction of where to put the inference_tts.ipynb. I supposed it supposed to be
src/audiocraft/audiocraft/inference_tts.ipynb
. AlsoImportError: attempted relative import beyond top-level package
Adding Absolute Import like this could help prevent this issue but it will raising another issue, which is
ModuleNotFoundError: No module named 'AudioTokenizer'
from models import voicecraft
doesn't seem like it is working like it should. Probably same package issue with Stage 1'sAudioTokenizer
andTextTokenizer
.Which is the one you see on Error Code. It is... ridiculous. The thing with
AttributeError: module 'torch' has no attribute 'compiler'
usually caused by torch version that does not support compiler, which is PyTorch 2.0 >.But hell,
transformer
of mine is 4.38.1,xformers
is 0.0.25.post1, and mytorch
is 2.2.2+cu121. Which supposedly should able to have compiler. There may be other causes and well, I don't have any ideas.Minor one, what is the thing with
apt-get install ffmpeg
andapt-get install espeak-ng
? It doesn't recognized as any in my system. I think it supposed to be Linux command?Post-script
You may find this entire issue look like a rant, but no, I didn't want to mean like that. Sure it's a little bit hideous when all of this happened. But all thing considered, it is an amazing project that could probably join in the current stance between Coqui and Tortoise especially the zero-shot part. It will be much popular that it was if someone eventually got this to hook up on their webui, like rsxdalv's TTS Generation Webui.
Of course I would say we still need the fixing. You can ask me for more context or information if you wanted it to fix this.
Update 1 : fixing my wording
The text was updated successfully, but these errors were encountered: