Deep-Live-Cam
Deep-Live-Cam copied to clipboard
Issue while running for a pre-recorded video
getting the following error when clicked on save
set det-size: (640, 640)
Exception in Tkinter callback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/init.py", line 1921, in call
return self.func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/customtkinter/windows/widgets/ctk_button.py", line 554, in _clicked
self._command()
File "/Users/nikhil/Deep-Live-Cam/modules/ui.py", line 95, in keras.layers and keras.operations). You are likely doing something like:
x = Input(...)
...
tf_fn(x) # Invalid.
What you should do instead is wrap tf_fn in a layer:
class MyLayer(Layer):
def call(self, x):
return tf_fn(x)
x = MyLayer()(x)
May you can try: pip install opennsfw2==0.13.10 Good lucky.