-
Notifications
You must be signed in to change notification settings - Fork 88
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
ImportError: attempted relative import beyond top-level package #81
Comments
please pull the latest code on this repo. |
I still get the same error.
What format do I need to use in the yaml? |
Even if I copy the maa2.ckpt file into the same folder as demo_music.py and change the path in the yaml to |
Could you provide full error logs? we will help you to solve this problem. |
check this line on demo_music.py: - from ..util import instantiate_from_config
+ from models.util import instantiate_from_config |
In the YAML file, the |
OK, I did a fresh install with a new git clone and all pip installs are inside a newly created venv. Root directory is The yaml file is Changing Lumina-T2X\lumina_music\models\autoencoder1d.py I change into the Full stats
At that point the script seems to hang. Normally a python script would exit back to the command line at that point.
Trying alternate paths in the yaml give similar errors, ie
|
OK, working. As always, once you post the issue it is fixed a minute later :) So the main cause was the |
Another issue now further on. After getting past the above issues, the script downloads a few models but then fails with a permission denied. Stats for demo_music.py
Same error even if I run it from an administrator command prompt and I made sure the directory is not read only. |
Could I check your yaml file? |
|
This is under Windows too if that makes a difference? |
I will try to reproduce in windows. let me check |
We cannot guarantee that it will work properly on Windows; it is best to use Linux. We will release a tutorial for using it on Windows after we have tested it. |
Hi @SoftologyPro , in your case, you can use the absolute path in yaml file. |
What format should the full path be? Which file/line needs to be changed?
Notice the error points to the relativ epath still |
modify |
OK, that got the UI launching.
Maybe I should just give up for now until you guys have a working Windows version. |
following the error information, you should install |
That is a problem. |
Trying to build the latest triton from their github
This is a no go for now unless I can find a Windows WHL for Triton >=2.2.0 or someone can get a WHL compiled for Windows. |
we recommend using in Linux |
Well of course you do :) |
we will try our best to solve this problem! we're working on merge our code into |
Yes, I have used Diffusers with some other Text-to-Image scripts in the past. |
Absolutely the same Did absolutely the same - changed yaml, paths etc Walked the same path with the same errors and now stuck on here:
then
|
We currently full-tested on linux environment, but it haves some bugs on windows because the platform capability. |
Hi @SoftologyPro |
Thanks, but that only covers the image generation? |
We are trying to fix the problem in windows. |
Trying to get the lumina_music demo working.
I have all the models downloaded locally.
Using the command...
python demo_music.py --ckpt ..\models\Lumina-Music\music_generation --vocoder_ckpt ..\models\Lumina-Music\bigvnat --config_path .\configs\lumina-text2music.yaml --sample_rate 16000
I edited the yaml ckpt path to be
ckpt_path: ../../models/Lumina-T2Music/maa2
That does point to the maa2 directory.
But when it runs I get this error
Any ideas what I am doing wrong here?
Even if I use an explicit full path to the ckpt, same error.
ckpt_path: "D:/MachineLearning/Lumina-T2X/Lumina-T2X/models/Lumina-T2Music/maa2/maa2.ckpt"
The text was updated successfully, but these errors were encountered: