Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Datasets:
Alignment-Lab-AI
/
ARC-stuff
like
0
Dataset card
Data Studio
Files
Files and versions
xet
Community
main
ARC-stuff
/
arc-vit
/
normalize_colors.py
Alignment-Lab-AI
Upload folder using huggingface_hub
d5bfab8
verified
about 1 year ago
raw
Copy download link
history
blame
contribute
delete
142 Bytes
def
normalize_color
(
color:
int
) ->
int
:
if
color <
0
:
return
0
if
color >
12
:
return
255
return
color *
255
//
12