bing456 commited on
Commit
8f1ebda
1 Parent(s): b2999ab

Update facefusion/content_analyser.py

Browse files
Files changed (1) hide show
  1. facefusion/content_analyser.py +2 -2
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 False #analyse_frame(frame)
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)