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

colab is not working anymore #134

Open
eunkoh opened this issue Jul 25, 2023 · 26 comments
Open

colab is not working anymore #134

eunkoh opened this issue Jul 25, 2023 · 26 comments

Comments

@eunkoh
Copy link

eunkoh commented Jul 25, 2023

Hi, could you double check mt3, t5x versions in colab notebook? Your colab is not working anymore, so if you could double-check this notebook, https://github.com/magenta/mt3/blob/main/mt3/colab/music_transcription_with_transformers.ipynb, that would be appreciated.

I cannot import the models because mt3, t5x cannot be imported in your cell. Thanks.

@bwgJohn
Copy link

bwgJohn commented Jul 26, 2023

I have the same problem

@nic-chua
Copy link

I am having the same issue, I cannot import t5 in the Import and Definitions cell, but it was working a couple days ago

@iansimon
Copy link
Contributor

Ugh, I'm not sure the best way to fix this. For now, you can add another pip install command that looks like:

!python3 -m pip install clu==0.0.8 numpy==1.22.4 --ignore-installed

I'll see if I can find a cleaner fix before I update the official notebook...

@Jackl-o-o-l
Copy link

Unfortunately, the fix does not work for me. I still get the same issue after adding the command.

@Jackl-o-o-l Jackl-o-o-l mentioned this issue Jul 27, 2023
@SDSC-christian
Copy link

SDSC-christian commented Jul 27, 2023

Why not fix the version of the only library that is not fixed:
!python3 -m pip install --no-dependencies --upgrade ddsp==3.5.0

@Jackl-o-o-l
Copy link

This does not work for me either

@nic-chua
Copy link

I've tried multiple fixes but haven't had any luck. Has anyone been able to find a fix for this issue?

@zhanh-he
Copy link

After installed all packages of Setup Environment,
!pip install numpy -I
Restart runtime by this cell, then define "load_gtag" and "log_event" again. https://drive.google.com/file/d/1JZCikujYFBKAa2UfCPXEmSglLsc2JhwZ/view?usp=sharing

@Jackl-o-o-l
Copy link

Jackl-o-o-l commented Jul 31, 2023

After installed all packages of Setup Environment, !pip install numpy -I Restart runtime by this cell, then define "load_gtag" and "log_event" again. https://drive.google.com/file/d/1JZCikujYFBKAa2UfCPXEmSglLsc2JhwZ/view?usp=sharing

I tried this fix and an error occurred when running "Upload Audio": "AudioIOReadError: initialization of _internal failed without raising an exception". This is probably because numpy (1.25.1) installed in the fix is not compatible with numba, which requires numpy<1.24.

@Jackl-o-o-l
Copy link

I fix the AudioIOReadError by changing the line
!pip install numpy -I
to
!pip install numpy==1.23.5 -I

However, now another error occurred when running "Transcribe Audio": "ImportError: fluidsynth() was called but pyfluidsynth is not installed".

@Jackl-o-o-l
Copy link

Replacing
!apt-get update -qq && apt-get install -qq libfluidsynth2 build-essential libasound2-dev libjack-dev
with
!apt-get update -qq && apt-get install -qq libfluidsynth3 build-essential libasound2-dev libjack-dev
would probably solve the issue with pyfluidsynth

@Jackl-o-o-l
Copy link

Jackl-o-o-l commented Jul 31, 2023

It worked, finally. I also downgraded bokeh so that midi image could come out normally.
https://colab.research.google.com/drive/1JkWyAwFhAC6SJJ1Lvf4VPap6FwtniEuy?usp=sharing

@jsphweid
Copy link

jsphweid commented Aug 1, 2023

@Jackl-o-o-l That notebook doesn't work for me: I run into the same issue as #136 (comment)

Did you make any other alterations?

@Jackl-o-o-l
Copy link

Jackl-o-o-l commented Aug 1, 2023

@jsphweid I think if you click "RESTART RUNTIME" after running !pip install numpy==1.23.5 -I, it will work for you.
I did not change anything before you ask the question but now I added a line of notice in the notebook.

@sxueck
Copy link

sxueck commented Aug 9, 2023

It worked, finally. I also downgraded bokeh so that midi image could come out normally. https://colab.research.google.com/drive/1JkWyAwFhAC6SJJ1Lvf4VPap6FwtniEuy?usp=sharing

Thank you very much. You've done me a great favor. ; )

@MohammedMehdiTBER
Copy link

It worked, finally. I also downgraded bokeh so that midi image could come out normally. https://colab.research.google.com/drive/1JkWyAwFhAC6SJJ1Lvf4VPap6FwtniEuy?usp=sharing

Worked for me but still It produces absurd midi files as I cannot recognize the original sound of the song also It splits one guitar into several absurd identifiers! Guitar songs are lost tot this AI.

@Jackl-o-o-l
Copy link

It worked, finally. I also downgraded bokeh so that midi image could come out normally. https://colab.research.google.com/drive/1JkWyAwFhAC6SJJ1Lvf4VPap6FwtniEuy?usp=sharing

Worked for me but still It produces absurd midi files as I cannot recognize the original sound of the song also It splits one guitar into several absurd identifiers! Guitar songs are lost tot this AI.

Unfortunately, I had a similar experience. For the notes given by the same instrument in the input audio, the model somehow decides to use some different and weird instruments that suddenly pop out and last only for a few bars. When I listen to the output midi, sometimes I feel that I am listening to the soundtrack of a thriller, despite that the input is just a normal pop song without the vocal. I believed that those are problems related with the model itself. I hope that they could improve the model so that the output midi file could be more consistent.

@MohammedMehdiTBER
Copy link

MohammedMehdiTBER commented Aug 18, 2023 via email

@PimTournaye
Copy link

PimTournaye commented Sep 22, 2023

Unfortunately, I'm also getting crashes, both with the official notebook, and with @Jackl-o-o-l 's notebook.
In the cell below 'Load Model":

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[<ipython-input-9-30d8629039fb>](https://localhost:8080/#) in <cell line: 14>()
     12 import librosa
     13 import note_seq
---> 14 import seqio
     15 import t5
     16 import t5x

5 frames
[/usr/local/lib/python3.10/dist-packages/flax/core/axes_scan.py](https://localhost:8080/#) in <module>
     20 from jax import core
     21 from jax import lax
---> 22 from jax.extend import linear_util as lu
     23 from jax.interpreters import partial_eval as pe
     24 import jax.numpy as jnp

ImportError: cannot import name 'linear_util' from 'jax.extend' (/usr/local/lib/python3.10/dist-packages/jax/extend/__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.
---------------------------------------------------------------------------

@gtr3qq
Copy link

gtr3qq commented Sep 25, 2023

Unfortunately, I'm also getting crashes, both with the official notebook, and with @Jackl-o-o-l 's notebook. In the cell below 'Load Model":

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[<ipython-input-9-30d8629039fb>](https://localhost:8080/#) in <cell line: 14>()
     12 import librosa
     13 import note_seq
---> 14 import seqio
     15 import t5
     16 import t5x

5 frames
[/usr/local/lib/python3.10/dist-packages/flax/core/axes_scan.py](https://localhost:8080/#) in <module>
     20 from jax import core
     21 from jax import lax
---> 22 from jax.extend import linear_util as lu
     23 from jax.interpreters import partial_eval as pe
     24 import jax.numpy as jnp

ImportError: cannot import name 'linear_util' from 'jax.extend' (/usr/local/lib/python3.10/dist-packages/jax/extend/__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.
---------------------------------------------------------------------------

same

@Kaes3kuch3n
Copy link

Looks like the latest flax version broke something. It started working again for me after downgrading to flax==0.7.2

@gtr3qq
Copy link

gtr3qq commented Oct 7, 2023

Looks like the latest flax version broke something. It started working again for me after downgrading to flax==0.7.2

Yeah! it works now!

@gtr3qq
Copy link

gtr3qq commented Oct 7, 2023

It worked, finally. I also downgraded bokeh so that midi image could come out normally. https://colab.research.google.com/drive/1JkWyAwFhAC6SJJ1Lvf4VPap6FwtniEuy?usp=sharing

Worked for me but still It produces absurd midi files as I cannot recognize the original sound of the song also It splits one guitar into several absurd identifiers! Guitar songs are lost tot this AI.

Would you mind to update the flax ==0.7.2 ? plesse?

@0xdevalias
Copy link

0xdevalias commented May 12, 2024

TypeError: register_with_handler() got an unexpected keyword argument 'for_restore'

See also:

@Apple-jun
Copy link

@jsphweid I think if you click "RESTART RUNTIME" after running !pip install numpy==1.23.5 -I, it will work for you. I did not change anything before you ask the question but now I added a line of notice in the notebook.

RESTART RUNTIME doesn't work for me: I run into the same issue.

@0xdevalias
Copy link

It seems like upstream was broken, as per this issue:

Within that issue, they mention that the commit before the one they mentioned seemed to work; so presumably this could be fixed by forcing that package to the version before the error was introduced (and then potentially any related dependencies/etc)

Originally posted by @0xdevalias in #151 (comment)


!pip install --upgrade orbax-checkpoint==0.5.8 works as a workaround for me.

Originally posted by @garzon in #151 (comment)

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