Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Robert001
/
UniControl-Demo
like
23
Runtime error
App
Files
Files
Community
3
6d16592
UniControl-Demo
/
annotator
/
grayscale
/
__init__.py
Robert001
first commit
b334e29
over 1 year ago
raw
Copy download link
history
blame
Safe
143 Bytes
from
skimage
import
color
class
GrayscaleConverter
:
def
__call__
(
self, img
):
return
(color.rgb2gray(img) *
255.0
).astype(
'ubyte'
)