Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
tristan-aeschbach
/
Test
like
0
Runtime error
App
Files
Files
Community
3fc6c48
Test
/
experiments_face.py
TRISTAN AESCHBACH
add entire Fooocus repo
047c786
8 months ago
raw
Copy download link
history
blame
Safe
149 Bytes
import
cv2
import
extras.face_crop
as
cropper
img = cv2.imread(
'lena.png'
)
result = cropper.crop_image(img)
cv2.imwrite(
'lena_result.png'
, result)