Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -80,6 +80,7 @@ class FaceCrop:
|
|
80 |
self.results.append(crop(self.source, (x, y), mode=self.mode, size=self.target_size, box=(w, h), face_ratio=self.face_ratio, shreshold=self.threshold))
|
81 |
|
82 |
def run(img, mode, width, height, face_ratio, threshold):
|
|
|
83 |
face_crop_pipeline.load_dataset(img)
|
84 |
face_crop_pipeline.set_crop_config(mode=mode, target_size=(width,height), face_ratio=face_ratio, threshold=threshold)
|
85 |
face_crop_pipeline.process()
|
|
|
80 |
self.results.append(crop(self.source, (x, y), mode=self.mode, size=self.target_size, box=(w, h), face_ratio=self.face_ratio, shreshold=self.threshold))
|
81 |
|
82 |
def run(img, mode, width, height, face_ratio, threshold):
|
83 |
+
face_crop_pipeline.results = []
|
84 |
face_crop_pipeline.load_dataset(img)
|
85 |
face_crop_pipeline.set_crop_config(mode=mode, target_size=(width,height), face_ratio=face_ratio, threshold=threshold)
|
86 |
face_crop_pipeline.process()
|