Comments (7)
It seems git-lfs is missing, you may install it here. related #10
You may also update to the latest version: pip install resemble-enhance --upgrade --pre
, which no longer uses git-lfs.
from resemble-enhance.
Thanks, I´ve upgraded to the pre version, but there is a new error:
Traceback (most recent call last):
File "/opt/resemble-enhance/.venv/lib/python3.11/site-packages/gradio/queueing.py", line 456, in call_prediction
output = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/resemble-enhance/.venv/lib/python3.11/site-packages/gradio/route_utils.py", line 232, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/resemble-enhance/.venv/lib/python3.11/site-packages/gradio/blocks.py", line 1522, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/resemble-enhance/.venv/lib/python3.11/site-packages/gradio/blocks.py", line 1144, in call_function
prediction = await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/resemble-enhance/.venv/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/resemble-enhance/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/opt/resemble-enhance/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/resemble-enhance/.venv/lib/python3.11/site-packages/gradio/utils.py", line 674, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/opt/resemble-enhance/app.py", line 24, in _fn
wav1, new_sr = denoise(dwav, sr, device)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/resemble-enhance/.venv/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/resemble-enhance/resemble_enhance/enhancer/inference.py", line 29, in denoise
enhancer = load_enhancer(run_dir, device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/resemble-enhance/resemble_enhance/enhancer/inference.py", line 16, in load_enhancer
run_dir = download()
^^^^^^^^^^
File "/opt/resemble-enhance/resemble_enhance/enhancer/download.py", line 40, in download
run_command(["git", "-C", str(REPO_DIR), "lfs", "pull"], "Failed to pull latest changes, please try again.")
File "/opt/resemble-enhance/resemble_enhance/enhancer/download.py", line 17, in run_command
raise RuntimeError(msg) from e
RuntimeError: Failed to pull latest changes, please try again.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/resemble-enhance/.venv/lib/python3.11/site-packages/gradio/queueing.py", line 501, in process_events
response = await self.call_prediction(awake_events, batch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/resemble-enhance/.venv/lib/python3.11/site-packages/gradio/queueing.py", line 465, in call_prediction
raise Exception(str(error) if show_error else None) from error
Exception: None
from resemble-enhance.
what's the output of pip show resemble-enhance
?
from resemble-enhance.
This is the output:
Name: resemble-enhance Version: 0.0.2.dev240104122303 Summary: Speech denoising and enhancement with deep learning Home-page: https://github.com/resemble-ai/resemble-enhance Author: Resemble AI Author-email: [email protected] License: Location: /opt/resemble-enhance/.venv/lib/python3.11/site-packages Requires: celluloid, deepspeed, gradio, librosa, matplotlib, numpy, omegaconf, pandas, ptflops, resampy, rich, scipy, soundfile, tabulate, torch, torchaudio, torchvision, tqdm Required-by:
currently I am installing the app like python3 -m pip install resemble-enhance --upgrade --pre
and I am starting the web app like python3 app.py
. Can the missing .venv cause this problem?
from resemble-enhance.
oic, you are running under the repo folder and it uses the old code (not the one newly installed with pip). you can try to git pull the latest version, or go to another folder.
from resemble-enhance.
Sorry, it´s not clear for me already. I´ve used git pull now and restarted the webserver, but it´s throwing the same error. How can I run the app in a different folder after git pull?
But it processes now for about 3 seconds, before the error is thrown.
I´ve tried different scenarios now:
- stable version with git-lfs installed => error
- pre version with git-lfs installed => error
Also I am running the latest git with all code updates. Is there any other installation requirement, which is missing at the readme? Specific folders, which should be created with chmod right XY?
from resemble-enhance.
OK, I solved it by my own. When running this application with venv you need to copy the app.py to e.g. .venv/bin/ and then start it here. Works!
from resemble-enhance.
Related Issues (20)
- Windows posixpath error HOT 3
- In Ubuntu 22.04, The application stops with an error telling nothing except that cloning the repo has failed HOT 2
- PosixPath error when running on MacOS HOT 4
- Docker installation possible? HOT 4
- Query Regarding the Impact of Varied Acoustic Environments on Model Performance HOT 2
- resemble_enhance/enhancer /__main__.py fixes
- Pre-trained usage with CPU / without Nvidia GPU HOT 2
- run the project meets errors
- Installation error HOT 1
- Command line instructions HOT 3
- Command line error HOT 1
- 在推理完成后发现几乎没有变化,和hugging face的结果差距很大 HOT 1
- reading hparams HOT 1
- processing one file
- How can i convert the .pt file to core ml model
- Question about Dataset
- RuntimeError in torchaudio_sox::load_audio_file() HOT 2
- Pretrained Model
- When installing on Win10,A Error occured,UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 1907: illegal multibyte sequence
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resemble-enhance.