-
Notifications
You must be signed in to change notification settings - Fork 3
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: cannot import name '_module_available' from 'pytorch_lightning.utilities' #2
Comments
Hi, thanks for writing this. Unfortunately, I no longer have access to the original python environment, but I can try and help you debug this. Can you post the full stack trace? |
Thanks for your quick response. Here ist the full stack trace:
I had to censor a few paths, but it shouldn't matter for debugging. |
alright, try and create a new environment and install these versions for the relevant python packages:
Keep me posted, so that I can update the requirements file if this works :) |
I now have thw following package versions:
I was not able to install torchvision 0.8.0 via pip and installed 0.9.0 instead. Now, after running:
I now get the following:
|
Hi, Any update on the above issue regarding the |
Hi everyone, sorry for the late reply. I have been trying to replicate the error but again, unfortunately, I no longer have access to my original setup. Anyways, based on this, it seems that it would be possible to pass model = ModelClass.load_from_checkpoint(model_ckpt_path, nfft=args.nfft) Let me know if that works, and feel free to continue the discussion here! I'd be happy to provide further support. |
Hi, thank you for your help. I did try to follow the above. But it seems we still need to provide cfg. As the below error occurs: Traceback (most recent call last): |
Hi, So, after downloading and using the latest version of the code (it has been updated by miccio-dk), I am now finally able to create the 'prtf.mat'. I have one hint: In order to use the command
line 39 in 'ear_to_prtf.py', has to be changed to:
@miccio-dk Thanks for your help! |
My pleasure, and thanks for the suggestion! i'll apply the change (along with specifying the correct versions of the pkgs in the requirements) and then close this issue :) |
@miccio-dk @AudioEngineer99 Thank you very much. I can output prtf.mat file now. |
Hello,
After having installed all required packages listed in 'requirements.txt', I am still getting this error, when running the command:
"python ear_to_prtf.py configs/edges_median.json /path/to/pinna_contours.png --nfft 512 --output_path /path/to/prtf.mat"
I tried upgrading from 'pytorch-lightning-bolts' to the more recent 'lightning-bolts' as well as installing different versions of 'pytorch-lightning-bolts'/'pytorch-lightning' without any success unfortunately.
I have the following package versions:
torch 1.13.0
torchvision 0.14.0
torchaudio 0.13.0
pytorch-lightning 1.8.4.post0
pytorch-lightning-bolts 0.3.2.post1
matplotlib 3.5.3
librosa 0.9.2
pandas 1.3.5
tqdm 4.64.1
numpy 1.21.6
scipy 1.7.3
python-sofa 0.2.0
Pillow 9.3.0
lightning-utilities 0.4.2
Maybe you would be so kind to share your list of package versions for which the model is working, as I guess it has something to do with changes to 'pytorch-lightning-bolts'/'pytorch-lightning'.
The text was updated successfully, but these errors were encountered: