deezer / deezer/spleeter

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

Open
#899 4 comments 3 reactions 0 assignees View on GitHub
bug invalid
Dominant language
Python
Stars
28.4k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

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:
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 objects

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.