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

Package dependency issue #2

Open
analogjedi opened this issue Mar 19, 2021 · 15 comments
Open

Package dependency issue #2

analogjedi opened this issue Mar 19, 2021 · 15 comments

Comments

@analogjedi
Copy link

Hello, I am having trouble getting the entire environment to work. Specifically Lingvo. Would you please provide a list of package versions that are known to work together for LEAF?

@qzaamz
Copy link

qzaamz commented Mar 24, 2021

(base) xxxxxx leaf-audio-master % pip3 install lingvo
ERROR: Could not find a version that satisfies the requirement lingvo
ERROR: No matching distribution found for lingvo
(base) xxxxxx leaf-audio-master % pip install lingvo
ERROR: Could not find a version that satisfies the requirement lingvo

@qzaamz
Copy link

qzaamz commented Mar 24, 2021

Can't possibly use it on mac!

@denfed
Copy link

denfed commented Mar 24, 2021

You might need to upgrade pip, pip(3) install --upgrade pip. Sometimes the pip version is old and it isn't aware of certain packages and versions.

@qzaamz
Copy link

qzaamz commented Mar 24, 2021

Tried that, didn't work unfortunately. It will be cool to be able to try your package, if you have any other suggestions, please let me know.

@denfed
Copy link

denfed commented Mar 24, 2021

Tried that, didn't work unfortunately. It will be cool to be able to try your package, if you have any other suggestions, please let me know.

One quick bandaid could be to comment out the SpecAugment class and lingvo import inside of the postprocessing.py file, its the only place lingvo is used (and I personally don't/won't use SpecAugment).

@bparbhu
Copy link

bparbhu commented Mar 28, 2021

I also have the same issue. I'm using Windows 10 and trying to install using the pip3 installl -e . command that was listed and getting the same issue around lingvo.

@denfed
Copy link

denfed commented Mar 29, 2021

I think I found a temporary workaround with that dependency issue. Its an issue with the tensorflow version for lingvo and some waymo-open-dataset, they are trying to request different versions. If you take a look at the readme in https://github.com/denfed/leaf-audio-pytorch under the Installation for Developing section, those commands with the requirements.txt in the repo should work. It's part of my pytorch port of this repo but it may be useful even for running this repo.

@dvisockas
Copy link

Personally I downgraded both tensorflow and tensorflow-gpu to the version 2.3.0 and installed leaf using pip legacy resolver with pip3 install -e . --use-deprecated=legacy-resolver. That helped me get this up and running

@analogjedi
Copy link
Author

Tried that, didn't work unfortunately. It will be cool to be able to try your package, if you have any other suggestions, please let me know.

One quick bandaid could be to comment out the SpecAugment class and lingvo import inside of the postprocessing.py file, its the only place lingvo is used (and I personally don't/won't use SpecAugment).

Thank you for the suggestion @denfed !

@Forevian
Copy link

downgrading to lingvo==8.2 solves it for me, it seems 9.0 introduced breaking changes

@lienz
Copy link
Collaborator

lienz commented Jul 6, 2021

Hi, I'm sorry about this inconvenience, handling lingvo has been a bit tricky, it should be solved now and Leaf should work with more recent versions of Tensorflow.

@lienz
Copy link
Collaborator

lienz commented Jul 6, 2021

@denfed we have also been thinking about just removing the SpecAugment layer altogether since, as you pointed out, it's the only reason why we depend on Lingvo.

@sruthisentil
Copy link

Hello! I have been having the Lingvo issue on my mac, can LEAF be used on a mac?

@sruthisentil
Copy link

Can't possibly use it on mac!

@qzaamz were you unable to use LEAF on Mac?

@jasirnit
Copy link

How do I install LEAF on Kaggle/Collab?

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

9 participants