Skip to content
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

Unable to import audioreactive module #27

Open
LeandreSassi opened this issue Nov 23, 2023 · 4 comments
Open

Unable to import audioreactive module #27

LeandreSassi opened this issue Nov 23, 2023 · 4 comments

Comments

@LeandreSassi
Copy link

Hi,
I might oversee a basic thing, but since I can't seem to get over it ill try here.
When I run the initialize or other codes provided in your colab I can't seem to import the audioreactive module. However, I did clone the repo and other .py modules are being imported.

Do you have any ideas of why this could be?

https://colab.research.google.com/drive/1Ig1EXfmBC01qik11Q32P0ZffFtNipiBR?usp=sharing

@JCBrouwer
Copy link
Owner

Can you paste the error trace you get? Which cell is it happening in?

@LeandreSassi
Copy link
Author

Thank you for reaching out,

Here is a printscreen of the cell where we can see that it doesnt recognize it and my collection folder.

MauaStyleGAN2

I've tried to !pip install --upgrade madmom but it didnt do anything. It seems I need a mutableSequence somewhere in the collection folder but I cant find any

Here the traceback:

ImportError Traceback (most recent call last)
in <cell line: 3>()
1 import torch as th
2 import librosa as rosa
----> 3 import audioreactive as ar
4
5 def initialize(args):

5 frames
madmom/audio/comb_filters.pyx in init madmom.audio.comb_filters()

/usr/local/lib/python3.10/dist-packages/madmom/processors.py in
21 import os
22 import sys
---> 23 from collections import MutableSequence
24
25 import numpy as np

ImportError: cannot import name 'MutableSequence' from 'collections' (/usr/lib/python3.10/collections/init.py)


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

@JCBrouwer
Copy link
Owner

Hmmm seems to be a bug in madmom related to python 3.10

CPJKU/madmom#509

Not sure what the easiest solution is, I'm sure that downgrading python in colab will be annoying.

Maybe you can try installing the most recent dev version of madmom?

pip install -U git+https://github.com/CPJKU/madmom

@LeandreSassi
Copy link
Author

LeandreSassi commented Nov 27, 2023

Dear JCBrouwer,

It worked. Thank you very much for your help. Your work is amazing.

I suggest to:

  • add the !pip install -U git+https://github.com/CPJKU/madmom
  • You could also mention that tensorflow below version 2 is not supported anymore on colab so if using colab the line %tensorflow_version 1.x should be deleted in cell 2.
  • The models you are gdownloading do not exist anymnore. Also because some problems can occur from the conversion of .pkl to .pt checkpoints maybe you can propose to use the styleGAN2-ffhq-config-f.pt.

I hope it helps. Thank you again!

Tot later ;)

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

2 participants