-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Abort when python demo_toolbox.py #11
Comments
I had planned to make a GUI-less demo inference script for a while, but really its only purpose would be to show you how to interface the models with your code. Essentially it comes down to making calls to the three Either way I'll be writing that script in two days I think (currently have exams to pass). I'm still thinking about how I want to do it. As for the GUI problem, I'm sorry but I just don't know enough on that topic to help you. Your guess is a good as mine. |
Hey @Interfish, I've added this stub to allow for quick debugging without a GUI. Can you test and see if it runs? I'll implement an interactive way of doing inference later on. |
Hi @CorentinJ, I am facing exactly the same problem as @Interfish on my local machine. and I tested your I tracked the error with
The error occurs in class UI(QDialog):
...
...
...
def __init__(self):
## Initialize the application
self.app = QApplication(sys.argv)
super().__init__(None)
self.setWindowTitle("SV2TTS toolbox") I don't know PyQt5 so I couldn't debug it so far. Any ideas? Still working on it... Cheers! Attachment:
|
Enable Qt-Debug System I am running my PyQt5-application in a Docker container with shared $ nividia-docker run --interactive --tty --env DISPLAY=$DISPLAY --volume /tmp/.X11-unix/:/tmp/.X11-unix/ <docker_iamge> Error Initializing Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5.QtWidgets import QApplication
>>> app = QApplication([])
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted (core dumped) In PyCharm Debug mode the error returned:
Solution General method:
$ export QT_DEBUG_PLUGINS=1
$ python
Python 3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
KeyboardInterrupt
>>> from PyQt5.QtWidgets import QApplication, QLabel
>>> app = QApplication([])
### lib no.1 ###
$ sudo conda install --name <env_name> --force-reinstall libxcb # or pip install ...
### lib no. 2 ###
$ apt-file --package-only search libxkbcommon-x11.so.0
libxkbcommon-x11-0
$ sudo apt install libxkbcommon-x11-0 After repeating this process for all sequentially reproduced debug messages and installing the 2 libs I can now run PyQt5-apps from inside the Docker container on my local machine desktop. |
Hey @DrStoop, sorry for the late reply, I was away for a while. What I understand is that you managed to get the toolbox to work through X11? If so, I could link your comment in the readme for other users who might face the same issue. It looks to me that there isn't much that I can change to the code that would have helped, what do you reckon? @Interfish, does this solve your issue as well? |
@CorentinJ that's correct, I did not touch your code and I am running SV2TTS-toolbox in a docker container with the GUI through shared |
@CorentinJ Sorry for late reply, i will try it now and feed back the result |
@CorentinJ By the way, what's the total GPU memory this code consume? I currently run on a 4gb GPU but CUDA out of memory? |
You're fine with 4gb if you don't put too long sentences. I'm currently experimenting with implementing low-memory inference to work around that but it's always a tricky thing to know in advance how much VRAM you'll need for an operation and how much is available... |
@CorentinJ Hi, I try your new code and it worked! Thanks for the great job, I really like your art of coding and necessary comments. I am now trying to manipulate the code to run fine-tuning. Maybe I can finally submit a version to run the full function as demo_toolbox.py does with CLI. |
Hi @MorganCZY, have you set the environment variable in your terminal with the command $ export QT_DEBUG_PLUGINS=1 and rerun the demo_toolbox.py in the same terminal. This should return a lot of debug messages as listed above and you can proceed with the solution also described there (finding missing libs, installing missing libs, rerun, repeat). Hope that helps! |
@DrStoop Following your guidance, I didn't get more debug info. |
@MorganCZY, you got that right, it is exactly how I turned on the debug mode, just the output looked different :)... To provoke the error I did not run the full demo_toolbox.py script but just a small code snippet what you also just tried. As I tracked down the error to QApplication() before with $ python
Python 3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5.QtWidgets import QApplication, QLabel
>>> app = QApplication([]) Possibly you don't need GUI support for this snippet, but I cannot really tell. Regarding your GUI-issue, I also can't really tell from here how your system looks like. In case you're using a Docker container, take a look at this description to enable GUIs on your host desktop. |
Hi @DrStoop @CorentinJ |
@xw1324832579 the first error complains it cannot connect to display :0. have you shared the X11-unix socket as volume in the docker run command and adjusted your image build for GUI applications as I mentioned with a link at the end of my comment? this should solve the first & possibly the follow-up errors... |
Hi: Aborted (core dumped) and I can run python demo_cli.py successfully; and I have tested without a GUI, but the same error; |
Hi Guys, I am trying to run demo_toolbox.py but getting an error: "Cannot mix incompatible Qt library (version 0x50602) with this library (version 0x50d00)" I am using a windows 10 laptop and not sure how to fix this error. Can someone please help me with this. Thanks. |
What's your pyqt version? You can try to install 5.12.2, the same as mine. |
Hi Corentin,
My pyqt version is 5.13.0.
I tried to install the pyqt version 5.12.2 but still the program wont run.
Not sure what the problem is.
Hope you can help.
Thanks
…On Wed., Sep. 11, 2019, 03:59 Corentin Jemine, ***@***.***> wrote:
What's your pyqt version? You can try to install 5.12.2, the same as mine.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11?email_source=notifications&email_token=ANC53LQNU3DFEMWRZFAOMATQJCQNFA5CNFSM4HZFN7D2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6NT6AQ#issuecomment-530267906>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANC53LWY7IKIROVIQAQNFXDQJCQNFANCNFSM4HZFN7DQ>
.
|
Hi Guys, I resolved my issue. The issue is solved when I used PyQt5 version 5.11.3 Thanks for sharing this amazing tool Corentin. |
put short sentences and it will not to out of memory. |
Hi,
I have a 16 gb gpu and long sentences like around 4 lines work flawlessly.
I dont think it uses all the space though.
Thanks.
…On Fri., Sep. 13, 2019, 21:57 projoy, ***@***.***> wrote:
@CorentinJ <https://github.com/CorentinJ> By the way, what's the total
GPU memory this code consume? I currently run on a 4gb GPU but CUDA out of
memory?
put short sentences and it will not to out of memory.
I just have 1gb GPU, I use "hello world" to run, that's ok
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11?email_source=notifications&email_token=ANC53LU6WA7WKGVW2F6ZMOLQJRAKLA5CNFSM4HZFN7D2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6WRMPI#issuecomment-531437117>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANC53LVO25CIZ3ELT5SZRZ3QJRAKLANCNFSM4HZFN7DQ>
.
|
tensorflow 2.0 works for me! |
What am I doing wrong here? Zachs-MacBook-Pro:Real-Time-Voice-Cloning zachhightower$ python3 demo_cli.py |
Ive installed tensorflow several times, removing it each time |
While running toolbox_cli.py, I get the response, No such file or directory |
I am getting an error as given below when we are giving the command. C:\Users\anand\Real-Time-Voice-Cloning>python demo_toolbox.py -d ~/Desktop/LibriSpeech/train-clean-100/ Please help Regards |
Hello, i am trying to make it work but i get this message, i am doing something wrong here? python3.7 demo_toolbox.py -d dataset_root/vocoder/saved_models/pretrained/ Error: Model files not found. If needed, download them here: |
@afantasialiberal You should be putting the pretrained models in the following locations so the toolbox can find them: Encoder: Then run the toolbox with:
|
Thanks it was not clear for me, now it work. |
im getting the following error when i hit synthesize and vocode ,"Could not find any synthesizer weights under C:\Users\jack\PycharmProjects\pythonProject\Real-Time-Voice-Cloning\synthesizer\saved_models\logs-pretrained\taco_pretrained\checkpoint\taco_pretrained",someone help please |
Intercambio |
Hello sir, i have installed every dependencies but while i run th audio i get an error which says Numpy not available .... what can i do to resolve it ??? |
when I try to record the audio I got an exception as Traceback (most recent call last): |
Preparing the encoder, the synthesizer and the vocoder... |
Hey @DrStoop I was trying to launch the app but it kept giving me this AttributeError: module 'numpy' has no attribute 'float'. |
Hi @Soul0702, when you read the error messages closely it's telling you that somewhere in your scripts there is a "np.float" explicitly used which is depreciated and it also advises you what to replace it with. I would recommend to try to replace "np.float" with "np.float64" first (not "float") as this repo is based on numpy (a.f.a.I.c.r.). Probably you'll find the "np.float" in "C:\User\PC\Desktop\voice\toolbox\ui.py", if not check the other files listed. |
Hello guyz. I am facing the issue when i try to import audio file (TypeError: can't convert np.ndarray of type numpy.object_. The only supported types are: float64, float32, float16, complex64, complex128, int64, int32, int16, int8, uint8, and bool. ) please someone help me , it's really important |
Hi Guys! @OmairAhmad1998 if you are using most resent numpy version, you need to edit the code "numpy.int32" to int only, same for "numpy.float32", to dtype=float. Also, I need help, I have an error when I trying to load an dataset using the toolbox interface, when I click on "load" I am getting this error, img attached, "Exception: load() takes 1 positional argument but 2 were given" I have not idea why, I do not modify the code. Do you have any ideas? |
i just push the load buttton. |
Aborted (core dumped) I am getting this error |
I have completed all steps, just before running this command - python demo_toolbox.py i am not getting Ui window also my CMD do not showing any error just this is show: kindly anyone resolve this issue: |
I did this and it worked for me
And replace this code witht the existing code in encoder/audio.py
|
use float instead of np.float |
Check my comment |
use this int(value * 100)) |
Hi, I was able to fix the issue using an older versions of Python and another libraries. I wish this can help to your problem. Best. |
were you able to get a solution?? |
debug,comment the line "download model",download model manualy |
Hi:
I am trying to run your code on a centos server with X11 forwarding open. But when I try
python demo_toolbox dataset
, it printsI believe I installed all required packages. Looks like the error is not caused by python but some low level call. So is there any way to print more error message? Or is there any way to run without GUI ? (I think although I open X11 forward on this server but it still might not fit as good as a pure GUI machine).
Thanks!
The text was updated successfully, but these errors were encountered: