spleeter icon indicating copy to clipboard operation
spleeter copied to clipboard

AssertionError: Nesting violated for default stack of <class 'tensorflow.python.framework.ops.Graph'> objects

Open Test-Jim opened this issue 9 months ago • 3 comments

I used flask, and then called the interface. No error was reported the first time, but this error will definitely be reported the second time I called it.

Exception ignored in: <generator object Estimator.predict at 0x000001C3F2AF6AB0> Traceback (most recent call last): File "C:\Users\admin123\PycharmProjects\sd_flask.venv\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 618, in predict with tf.Graph().as_default() as g: File "C:\Users\admin123\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "C:\Users\admin123\PycharmProjects\sd_flask.venv\lib\site-packages\tensorflow\python\framework\ops.py", line 5821, in get_controller with super(_DefaultGraphStack, File "C:\Users\admin123\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "C:\Users\admin123\PycharmProjects\sd_flask.venv\lib\site-packages\tensorflow\python\framework\ops.py", line 5633, in get_controller raise AssertionError( AssertionError: Nesting violated for default stack of <class 'tensorflow.python.framework.ops.Graph'> objects

Test-Jim avatar May 09 '24 11:05 Test-Jim

me too

abellee avatar Jun 12 '24 18:06 abellee

Same issue, Anyone find solution.

venkatmacapp avatar Jul 17 '24 10:07 venkatmacapp

我也遇到了这个问题

Astronaut323 avatar Sep 24 '24 07:09 Astronaut323