Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
karpatko
/
Fooocus
like
0
Runtime error
App
Files
Files
Community
main
Fooocus
/
experiments_face.py
karpatko
Upload folder using huggingface_hub
22b112d
verified
7 months ago
raw
Copy download link
history
blame
contribute
delete
No virus
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)