Spaces:
Paused
Paused
Update facefusion/content_analyser.py
Browse files
facefusion/content_analyser.py
CHANGED
@@ -70,13 +70,14 @@ def prepare_frame(frame : Frame) -> Frame:
|
|
70 |
|
71 |
|
72 |
def analyse_frame(frame : Frame) -> bool:
|
73 |
-
content_analyser = get_content_analyser()
|
74 |
-
frame = prepare_frame(frame)
|
75 |
-
probability = content_analyser.run(None,
|
76 |
-
{
|
77 |
-
'input:0': frame
|
78 |
-
})[0][0][1]
|
79 |
-
return probability > PROBABILITY_LIMIT
|
|
|
80 |
|
81 |
|
82 |
@lru_cache(maxsize = None)
|
|
|
70 |
|
71 |
|
72 |
def analyse_frame(frame : Frame) -> bool:
|
73 |
+
#content_analyser = get_content_analyser()
|
74 |
+
#frame = prepare_frame(frame)
|
75 |
+
#probability = content_analyser.run(None,
|
76 |
+
#{
|
77 |
+
#'input:0': frame
|
78 |
+
#})[0][0][1]
|
79 |
+
#return probability > PROBABILITY_LIMIT
|
80 |
+
return False
|
81 |
|
82 |
|
83 |
@lru_cache(maxsize = None)
|