Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
dmndkut
/
Fooocus
like
0
No application file
App
Files
Files
Community
main
Fooocus
/
face_experiments.py
dmndkut
Upload folder using huggingface_hub
2a9e003
10 months ago
raw
Copy download link
history
blame
contribute
delete
No virus
157 Bytes
import
cv2
import
fooocus_extras.face_crop
as
cropper
img = cv2.imread(
'lena.png'
)
result = cropper.crop_image(img)
cv2.imwrite(
'lena_result.png'
, result)