Anuj-Panthri commited on
Commit
629b43a
·
0 Parent(s):

first commit

Browse files
.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
.github/workflows/main.yml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ # to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+ - name: Push to hub
18
+ env:
19
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
+ run: git push https://anuj-panthri:$HF_TOKEN@huggingface.co/spaces/anuj-panthri/imagine-color main --force
.gitignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ .ipynb_checkpoints
2
+ __pycache__
3
+ # models
4
+ # datasets
Colgen1.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
DjangoWeb/.gitignore ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Django #
2
+ *.log
3
+ *.pot
4
+ *.pyc
5
+ __pycache__
6
+ db.sqlite3
7
+ media
8
+
9
+ # Backup files #
10
+ *.bak
11
+
12
+ # If you are using PyCharm #
13
+ # User-specific stuff
14
+ .idea/**/workspace.xml
15
+ .idea/**/tasks.xml
16
+ .idea/**/usage.statistics.xml
17
+ .idea/**/dictionaries
18
+ .idea/**/shelf
19
+
20
+ # AWS User-specific
21
+ .idea/**/aws.xml
22
+
23
+ # Generated files
24
+ .idea/**/contentModel.xml
25
+
26
+ # Sensitive or high-churn files
27
+ .idea/**/dataSources/
28
+ .idea/**/dataSources.ids
29
+ .idea/**/dataSources.local.xml
30
+ .idea/**/sqlDataSources.xml
31
+ .idea/**/dynamic.xml
32
+ .idea/**/uiDesigner.xml
33
+ .idea/**/dbnavigator.xml
34
+
35
+ # Gradle
36
+ .idea/**/gradle.xml
37
+ .idea/**/libraries
38
+
39
+ # File-based project format
40
+ *.iws
41
+
42
+ # IntelliJ
43
+ out/
44
+
45
+ # JIRA plugin
46
+ atlassian-ide-plugin.xml
47
+
48
+ # Python #
49
+ *.py[cod]
50
+ *$py.class
51
+
52
+ # Distribution / packaging
53
+ .Python build/
54
+ develop-eggs/
55
+ dist/
56
+ downloads/
57
+ eggs/
58
+ .eggs/
59
+ lib/
60
+ lib64/
61
+ parts/
62
+ sdist/
63
+ var/
64
+ wheels/
65
+ *.whl
66
+ *.egg-info/
67
+ .installed.cfg
68
+ *.egg
69
+ *.manifest
70
+ *.spec
71
+
72
+ # Installer logs
73
+ pip-log.txt
74
+ pip-delete-this-directory.txt
75
+
76
+ # Unit test / coverage reports
77
+ htmlcov/
78
+ .tox/
79
+ .coverage
80
+ .coverage.*
81
+ .cache
82
+ .pytest_cache/
83
+ nosetests.xml
84
+ coverage.xml
85
+ *.cover
86
+ .hypothesis/
87
+
88
+ # Jupyter Notebook
89
+ .ipynb_checkpoints
90
+
91
+ # pyenv
92
+ .python-version
93
+
94
+ # celery
95
+ celerybeat-schedule.*
96
+
97
+ # SageMath parsed files
98
+ *.sage.py
99
+
100
+ # Environments
101
+ .env
102
+ .venv
103
+ env/
104
+ venv/
105
+ ENV/
106
+ env.bak/
107
+ venv.bak/
108
+
109
+ # mkdocs documentation
110
+ /site
111
+
112
+ # mypy
113
+ .mypy_cache/
114
+
115
+ # Sublime Text #
116
+ *.tmlanguage.cache
117
+ *.tmPreferences.cache
118
+ *.stTheme.cache
119
+ *.sublime-workspace
120
+ *.sublime-project
121
+
122
+ # sftp configuration file
123
+ sftp-config.json
124
+
125
+ # Package control specific files Package
126
+ Control.last-run
127
+ Control.ca-list
128
+ Control.ca-bundle
129
+ Control.system-ca-bundle
130
+ GitHub.sublime-settings
131
+
132
+ # Visual Studio Code #
133
+ .vscode/*
134
+ !.vscode/settings.json
135
+ !.vscode/tasks.json
136
+ !.vscode/launch.json
137
+ !.vscode/extensions.json
138
+ .history
DjangoWeb/API/__init__.py ADDED
File without changes
DjangoWeb/API/admin.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from django.contrib import admin
2
+
3
+ # Register your models here.
DjangoWeb/API/apps.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from django.apps import AppConfig
2
+
3
+
4
+ class ApiConfig(AppConfig):
5
+ default_auto_field = 'django.db.models.BigAutoField'
6
+ name = 'API'
DjangoWeb/API/migrations/__init__.py ADDED
File without changes
DjangoWeb/API/models.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from django.db import models
2
+
3
+ # Create your models here.
DjangoWeb/API/tests.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from django.test import TestCase
2
+
3
+ # Create your tests here.
DjangoWeb/API/urls.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from django.urls import path
2
+ from . import views
3
+
4
+ urlpatterns = [
5
+ path('generate',views.generate)
6
+ ]
DjangoWeb/API/views.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from django.shortcuts import render
2
+ from django.http import HttpResponse
3
+ from django.views.decorators.csrf import csrf_exempt
4
+ import json
5
+ from ModelLoader import Colgen1
6
+
7
+ model_dir="models/colgen1/"
8
+ model=Colgen1(model_dir)
9
+
10
+ # Create your views here.
11
+ @csrf_exempt
12
+ def generate(request):
13
+ if request.method=='GET':
14
+ return HttpResponse("GET method not allowed")
15
+ elif request.method=='POST':
16
+ received_data = json.loads(request.body.decode("utf-8"))
17
+ print(received_data)
18
+
19
+ out=model.colorToHex(model.predict(received_data['color_names']))
20
+ print(out)
21
+
22
+ data={
23
+ "color_names":received_data["color_names"],
24
+ "colors":out
25
+ }
26
+ return HttpResponse(json.dumps(data))
DjangoWeb/DjangoWeb/__init__.py ADDED
File without changes
DjangoWeb/DjangoWeb/asgi.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ ASGI config for DjangoWeb project.
3
+
4
+ It exposes the ASGI callable as a module-level variable named ``application``.
5
+
6
+ For more information on this file, see
7
+ https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/
8
+ """
9
+
10
+ import os
11
+
12
+ from django.core.asgi import get_asgi_application
13
+
14
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DjangoWeb.settings')
15
+
16
+ application = get_asgi_application()
DjangoWeb/DjangoWeb/settings.py ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Django settings for DjangoWeb project.
3
+
4
+ Generated by 'django-admin startproject' using Django 4.2.6.
5
+
6
+ For more information on this file, see
7
+ https://docs.djangoproject.com/en/4.2/topics/settings/
8
+
9
+ For the full list of settings and their values, see
10
+ https://docs.djangoproject.com/en/4.2/ref/settings/
11
+ """
12
+
13
+ from pathlib import Path
14
+
15
+ # Build paths inside the project like this: BASE_DIR / 'subdir'.
16
+ BASE_DIR = Path(__file__).resolve().parent.parent
17
+
18
+
19
+ # Quick-start development settings - unsuitable for production
20
+ # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
21
+
22
+ # SECURITY WARNING: keep the secret key used in production secret!
23
+ SECRET_KEY = 'django-insecure-0*rq7^(=u=-$^4gxo525=(386go2u*0-u_qnry@n*=32rj=ep5'
24
+
25
+ # SECURITY WARNING: don't run with debug turned on in production!
26
+ DEBUG = True
27
+
28
+ ALLOWED_HOSTS = []
29
+
30
+
31
+ # Application definition
32
+
33
+ INSTALLED_APPS = [
34
+ 'django.contrib.admin',
35
+ 'django.contrib.auth',
36
+ 'django.contrib.contenttypes',
37
+ 'django.contrib.sessions',
38
+ 'django.contrib.messages',
39
+ 'django.contrib.staticfiles',
40
+ 'main',
41
+ 'API',
42
+ ]
43
+
44
+ MIDDLEWARE = [
45
+ 'django.middleware.security.SecurityMiddleware',
46
+ 'django.contrib.sessions.middleware.SessionMiddleware',
47
+ 'django.middleware.common.CommonMiddleware',
48
+ 'django.middleware.csrf.CsrfViewMiddleware',
49
+ 'django.contrib.auth.middleware.AuthenticationMiddleware',
50
+ 'django.contrib.messages.middleware.MessageMiddleware',
51
+ 'django.middleware.clickjacking.XFrameOptionsMiddleware',
52
+ ]
53
+
54
+ ROOT_URLCONF = 'DjangoWeb.urls'
55
+
56
+ TEMPLATES = [
57
+ {
58
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
59
+ 'DIRS': [],
60
+ 'APP_DIRS': True,
61
+ 'OPTIONS': {
62
+ 'context_processors': [
63
+ 'django.template.context_processors.debug',
64
+ 'django.template.context_processors.request',
65
+ 'django.contrib.auth.context_processors.auth',
66
+ 'django.contrib.messages.context_processors.messages',
67
+ ],
68
+ },
69
+ },
70
+ ]
71
+
72
+ WSGI_APPLICATION = 'DjangoWeb.wsgi.application'
73
+
74
+
75
+ # Database
76
+ # https://docs.djangoproject.com/en/4.2/ref/settings/#databases
77
+
78
+ DATABASES = {
79
+ 'default': {
80
+ 'ENGINE': 'django.db.backends.sqlite3',
81
+ 'NAME': BASE_DIR / 'db.sqlite3',
82
+ }
83
+ }
84
+
85
+
86
+ # Password validation
87
+ # https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
88
+
89
+ AUTH_PASSWORD_VALIDATORS = [
90
+ {
91
+ 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
92
+ },
93
+ {
94
+ 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
95
+ },
96
+ {
97
+ 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
98
+ },
99
+ {
100
+ 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
101
+ },
102
+ ]
103
+
104
+
105
+ # Internationalization
106
+ # https://docs.djangoproject.com/en/4.2/topics/i18n/
107
+
108
+ LANGUAGE_CODE = 'en-us'
109
+
110
+ TIME_ZONE = 'UTC'
111
+
112
+ USE_I18N = True
113
+
114
+ USE_TZ = True
115
+
116
+
117
+ # Static files (CSS, JavaScript, Images)
118
+ # https://docs.djangoproject.com/en/4.2/howto/static-files/
119
+
120
+ STATIC_URL = 'static/'
121
+
122
+ # Default primary key field type
123
+ # https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
124
+
125
+ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
DjangoWeb/DjangoWeb/urls.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ URL configuration for DjangoWeb project.
3
+
4
+ The `urlpatterns` list routes URLs to views. For more information please see:
5
+ https://docs.djangoproject.com/en/4.2/topics/http/urls/
6
+ Examples:
7
+ Function views
8
+ 1. Add an import: from my_app import views
9
+ 2. Add a URL to urlpatterns: path('', views.home, name='home')
10
+ Class-based views
11
+ 1. Add an import: from other_app.views import Home
12
+ 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
13
+ Including another URLconf
14
+ 1. Import the include() function: from django.urls import include, path
15
+ 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
16
+ """
17
+ from django.contrib import admin
18
+ from django.urls import path,include
19
+
20
+
21
+ urlpatterns = [
22
+ path('admin/', admin.site.urls),
23
+ path('',include("main.urls")),
24
+ path('api/',include("API.urls")),
25
+ ]
DjangoWeb/DjangoWeb/wsgi.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ WSGI config for DjangoWeb project.
3
+
4
+ It exposes the WSGI callable as a module-level variable named ``application``.
5
+
6
+ For more information on this file, see
7
+ https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/
8
+ """
9
+
10
+ import os
11
+
12
+ from django.core.wsgi import get_wsgi_application
13
+
14
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DjangoWeb.settings')
15
+
16
+ application = get_wsgi_application()
DjangoWeb/ModelLoader/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ from .colgen1 import Colgen1
DjangoWeb/ModelLoader/basemodel.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from abc import ABC,abstractmethod
2
+
3
+ class ModelBaseClass(ABC):
4
+ @abstractmethod
5
+ def preprocess(self,names):
6
+ pass
7
+
8
+ @abstractmethod
9
+ def predict(self,names):
10
+ pass
11
+
12
+ @staticmethod
13
+ def colorToHex(colors):
14
+ hex_list=[]
15
+ for color in colors:
16
+ hex_list.append("#{:02X}{:02X}{:02X}".format(color[0],color[1],color[2]))
17
+ return hex_list
DjangoWeb/ModelLoader/colgen1.py ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import tensorflow as tf
2
+ import numpy as np
3
+ import json
4
+ from .basemodel import ModelBaseClass
5
+
6
+ class Colgen1(ModelBaseClass):
7
+
8
+ def __init__(self,model_dir):
9
+ self.model=tf.keras.models.load_model(model_dir+"model.h5",compile=False)
10
+ self.token_to_idx=json.load(open(model_dir+"token_to_idx.txt",'r'))
11
+ self.TOKENS=list(self.token_to_idx.keys())
12
+
13
+
14
+ def tokenize(self,name):
15
+ """ tokenize single name """
16
+ return [self.token_to_idx[char] for char in name]
17
+
18
+ def one_hot_encode(self,tokens,num_classes):
19
+ return tf.keras.utils.to_categorical(tokens,num_classes=num_classes)
20
+
21
+ def add_padding(self,one_hot_vectors,num_classes,max_num_tokens):
22
+ ''' one_hot_vectors:np.array shape:(tokens,len(all_tokens)) '''
23
+ num_of_padding = max_num_tokens-len(one_hot_vectors)
24
+ padding = []
25
+
26
+ for _ in range(num_of_padding):
27
+ padding.append(np.zeros([num_classes]))
28
+ padding = np.array(padding)
29
+
30
+ return np.r_[padding,one_hot_vectors] if len(padding)>0 else one_hot_vectors
31
+
32
+ def preprocess(self,names):
33
+ """ names: [name,name,name,...] """
34
+
35
+ max_num_tokens=0
36
+ one_hots_list = []
37
+
38
+ for name in names:
39
+ name = name.lower()
40
+ tokens = self.tokenize(name)
41
+ one_hot_vectors = self.one_hot_encode(tokens,len(self.TOKENS))
42
+ if len(tokens)>max_num_tokens: max_num_tokens=len(tokens)
43
+ one_hots_list.append(one_hot_vectors)
44
+
45
+ for i in range(len(one_hots_list)):
46
+ # we need to add padding so that all the examples have same number of tokens
47
+ one_hots = one_hots_list[i]
48
+ one_hots_list[i] = self.add_padding(one_hots,len(self.TOKENS),max_num_tokens)
49
+
50
+ return np.array(one_hots_list)
51
+
52
+ def predict(self,names: list):
53
+ tokens = self.preprocess(names)
54
+ colors = (self.model.predict(tokens,verbose=0)*255).astype("uint8")
55
+ return colors
DjangoWeb/main/__init__.py ADDED
File without changes
DjangoWeb/main/admin.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from django.contrib import admin
2
+
3
+ # Register your models here.
DjangoWeb/main/apps.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from django.apps import AppConfig
2
+
3
+
4
+ class MainConfig(AppConfig):
5
+ default_auto_field = 'django.db.models.BigAutoField'
6
+ name = 'main'
DjangoWeb/main/migrations/__init__.py ADDED
File without changes
DjangoWeb/main/models.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from django.db import models
2
+
3
+ # Create your models here.
DjangoWeb/main/static/main/index.css ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *{
2
+ margin:0;
3
+ padding:0;
4
+ box-sizing: border-box;
5
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
6
+ }
7
+ html,body{
8
+ min-height:100%;
9
+ width:100%;
10
+ background: linear-gradient(45deg ,#333399,#a9ff00);
11
+ }
12
+ body{
13
+ position: absolute;
14
+ top:0;
15
+ left:0;
16
+ }
17
+
18
+ #main_container{
19
+ background-color: #ffffff4d;
20
+ box-shadow: 1px 1px 20px -10px #000;
21
+ /* height:100%; */
22
+ margin: 1.2rem;
23
+ padding: 1.5rem;
24
+ border-radius: 30px;
25
+ display: flex;
26
+ flex-direction: column;
27
+ align-items: center;
28
+ }
29
+
30
+ h2{
31
+ width: fit-content;
32
+ margin-inline: auto ;
33
+ font-size:2rem;
34
+ }
35
+
36
+ #search_section{
37
+ margin:4rem 0;
38
+ font-size:2rem;
39
+ }
40
+
41
+ #search_input{
42
+ outline:none;
43
+ border:none;
44
+ border-bottom: 2px solid #000;
45
+ font-size:inherit;
46
+ background-color: transparent;
47
+ padding:0.3rem;
48
+ }
49
+
50
+ input[type='button']{
51
+ outline:none;
52
+ border:none;
53
+ background-color: rgba(255, 255, 255, 0.537);
54
+ color:#000;
55
+ padding:1em;
56
+ font-size:1rem;
57
+ border-radius:10px;
58
+ }
59
+ input[type='button']:hover{
60
+ cursor: pointer;
61
+ }
62
+
63
+
64
+
65
+ #colors_section{
66
+ width:100%;
67
+ display: flex;
68
+ flex-direction: row;
69
+ align-items: center;
70
+ justify-content: space-evenly;
71
+ flex-wrap: wrap;
72
+ }
73
+ .card{
74
+ height: 200px;
75
+ width: 150px;
76
+ background-color: #fff;
77
+ border-radius: 10px;
78
+ overflow: hidden;
79
+ margin:1em;
80
+ }
81
+ .card-color{
82
+ height:80%;
83
+ width: 100%;
84
+ background-color: #000;
85
+ position: relative;
86
+ }
87
+ .card-title{
88
+ height:20%;
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: center;
92
+ text-align: center;
93
+ }
94
+
95
+ .card-like-btn{
96
+ color: red;
97
+ font-size:2rem;
98
+ position: absolute;
99
+ bottom: 10px;
100
+ right:10px;
101
+ visibility: hidden;
102
+ }
103
+ .card-copy-btn{
104
+ color: white;
105
+ font-size:2rem;
106
+ position: absolute;
107
+ bottom: 10px;
108
+ left:10px;
109
+ visibility: hidden;
110
+ }
111
+
112
+ .card:hover{
113
+ .card-copy-btn{
114
+ visibility: visible;
115
+ }
116
+ .card-like-btn{
117
+ visibility: visible;
118
+ }
119
+ .card-copy-btn:hover,.card-like-btn:hover{
120
+ cursor: pointer;
121
+ }
122
+ }
DjangoWeb/main/static/main/index.js ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function createColorCard(colorname,color){
2
+ /*
3
+ <div class="card">
4
+ <div class="card-color">
5
+
6
+ <i class="fa-solid fa-copy card-copy-btn"></i>
7
+ <i class="fa-solid fa-heart card-like-btn"></i>
8
+ </div>
9
+ <div class="card-title">cool red</div>
10
+ </div>
11
+ */
12
+
13
+ card = document.createElement("div");
14
+ card.className = "card";
15
+ card.dataset.color=color;
16
+ card.innerHTML=`
17
+ <div class="card-color" style='background:${color}'>
18
+ <i class="fa-solid fa-copy card-copy-btn" onclick="copyToClipboard(this.closest('.card').dataset.color)"></i>
19
+ <i class="fa-solid fa-heart card-like-btn"></i>
20
+ </div>
21
+ <div class="card-title">${colorname}</div>
22
+ `;
23
+
24
+ colors_section.prepend(card);
25
+ }
26
+
27
+ // createColorCard("blue");
28
+ // createColorCard("red");
29
+ // createColorCard("green");
30
+ // createColorCard("blue");
31
+ // createColorCard("red");
32
+ // createColorCard("green");
33
+
34
+ function generateColor(){
35
+ color_name = search_input.value.trim();
36
+ if(color_name=="") return;
37
+ if(color_name.length>200) return;
38
+
39
+ data = {
40
+ "color_names":[color_name],
41
+ };
42
+
43
+ header = {
44
+ "Content-Type":"application/json",
45
+ // "X-CSRFToken":csrf_token,
46
+ };
47
+
48
+ fetch("api/generate",{
49
+ method:"POST",
50
+ headers:header,
51
+ body:JSON.stringify(data),
52
+ }).then(response=>response.json()).then((res)=>{
53
+ // create card for it
54
+ createColorCard(color_name,res['colors'][0]);
55
+ })
56
+ }
57
+
58
+ function copyToClipboard(value){
59
+ navigator.clipboard.writeText(value);
60
+ }
61
+
62
+ function detectOnSubmit(e){
63
+ if(e.key==='Enter' || e.keyCode===13)
64
+ generateColor()
65
+ }
DjangoWeb/main/templates/main/index.html ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ {% load static %}
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>Imagine Color</title>
8
+ <link rel="stylesheet" href="{% static 'main/index.css' %}">
9
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
10
+ </head>
11
+ <body>
12
+ <div id="main_container">
13
+ <h2>Imagine Color</h2>
14
+
15
+ <section id="search_section">
16
+ <input type="text" id="search_input" onkeyup="detectOnSubmit(event)">
17
+ <input type="button" id="generate_btn" value="Generate" onclick="generateColor()">
18
+ <!-- <input type="button" id="search_btn" value="Search" disabled> -->
19
+ </section>
20
+
21
+ <section id="colors_section"></section>
22
+ </div>
23
+ </body>
24
+
25
+ <script src="{% static 'main/index.js' %}"></script>
26
+ </html>
DjangoWeb/main/tests.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from django.test import TestCase
2
+
3
+ # Create your tests here.
DjangoWeb/main/urls.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from django.urls import path
2
+ from . import views
3
+
4
+
5
+ urlpatterns = [
6
+ path('',views.home),
7
+ ]
DjangoWeb/main/views.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from django.http import HttpResponse
2
+ from django.shortcuts import render
3
+
4
+ def home(request):
5
+ # return HttpResponse("heyyy")
6
+ return render(request,"main/index.html",context={})
DjangoWeb/manage.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Django's command-line utility for administrative tasks."""
3
+ import os
4
+ import sys
5
+
6
+
7
+ def main():
8
+ """Run administrative tasks."""
9
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DjangoWeb.settings')
10
+ try:
11
+ from django.core.management import execute_from_command_line
12
+ except ImportError as exc:
13
+ raise ImportError(
14
+ "Couldn't import Django. Are you sure it's installed and "
15
+ "available on your PYTHONPATH environment variable? Did you "
16
+ "forget to activate a virtual environment?"
17
+ ) from exc
18
+ execute_from_command_line(sys.argv)
19
+
20
+
21
+ if __name__ == '__main__':
22
+ main()
DjangoWeb/requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ Django==4.2.6
2
+ numpy==1.24.3
3
+ tensorflow
Dockerfile ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FROM python:3.11-bullseye
2
+ FROM tensorflow/tensorflow
3
+ # FROM ubuntu
4
+
5
+
6
+ # RUN apt-get update && \
7
+ # apt-get -y upgrade && \
8
+ # apt-get install -y \
9
+ # sudo
10
+
11
+ # RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3 pip vim mc wget curl
12
+
13
+ # # to make open-cv work
14
+ # RUN apt-get install ffmpeg libsm6 libxext6 -y
15
+
16
+
17
+
18
+ EXPOSE 8000
19
+ COPY ./DjangoWeb/ /app
20
+ WORKDIR /app
21
+ RUN pip install --upgrade pip
22
+ RUN pip install -r requirements.txt --no-cache-dir
23
+
24
+
25
+ # RUN rm db.sqlite3
26
+ RUN ls -lh
27
+
28
+
29
+ # RUN python3 manage.py makemigrations;\
30
+ # python3 manage.py migrate;
31
+
32
+
33
+ # Make app folder writeable for the sake of db.sqlite3, and make that file also writeable.
34
+ # Ideally you host the database somewhere else so that the app folders can remain read only.
35
+ # Without these permissions you see the errors "unable to open database file" and
36
+ # "attempt to write to a readonly database", respectively, whenever the app attempts to
37
+ # write to the database.
38
+ RUN chmod g+w /app;
39
+ # RUN chmod g+w /app/db.sqlite3;
40
+ # upper commands are working !
41
+
42
+ RUN ls -lh
43
+
44
+ CMD python3 manage.py runserver 0.0.0.0:8000
README.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Imagine Color
3
+ emoji: 🏃
4
+ colorFrom: indigo
5
+ colorTo: yellow
6
+ sdk: docker
7
+ pinned: false
8
+ app_port: 8000
9
+ ---
10
+
11
+ # Imagine-Color
12
+
13
+ An RNN based model which is used to generate color from text.
14
+
15
+ ## Some Guidelines for the Project:-
16
+
17
+ - Ensure to write well structured and readable code.
18
+
19
+ ## Models:-
20
+
21
+ - [X] Make a simple Model (**colgen-1**)
22
+ - Make it based on character level tokenization
23
+ - [ ] Model with word-embedding (**colgen-2**)
24
+ - Make it based on word level tokenization
25
+ - don't use precalculated word embeddings
26
+
27
+
28
+
29
+ ## Web UI
30
+
31
+ - [X] Basic UI
32
+ - [X] Generate Color Functionality
33
+ - [ ] Save old color which are liked
34
+ - [ ] Add search functionality
35
+ - [ ] Add API endpoints
36
+ - [ ] Add API Documentation
37
+ - [ ] Add option to select which model to use
datasets/color_name_to_colors.csv ADDED
@@ -0,0 +1,756 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Name,R,G,B
2
+ Air Force blue,93,138,168
3
+ Alice blue,240,248,255
4
+ Alizarin crimson,227,38,54
5
+ Almond,239,222,205
6
+ Amaranth,229,43,80
7
+ Amber,255,191,0
8
+ American rose,255,3,62
9
+ Amethyst,153,102,204
10
+ Android Green,164,198,57
11
+ Anti flash white,242,243,244
12
+ Antique brass,205,149,117
13
+ Antique fuchsia,145,92,131
14
+ Antique white,250,235,215
15
+ Ao,0,128,0
16
+ Apple green,141,182,0
17
+ Apricot,251,206,177
18
+ Aqua,0,255,255
19
+ Aquamarine,127,255,212
20
+ Army green,75,83,32
21
+ dull light yellow,233,214,107
22
+ Ash grey,178,190,181
23
+ Asparagus,135,169,107
24
+ Atomic tangerine,255,153,102
25
+ Auburn,165,42,42
26
+ banana,253,238,0
27
+ light greenish grey,110,127,128
28
+ Awesome,255,32,82
29
+ Azure,0,127,255
30
+ Azure mist,240,255,255
31
+ Baby blue,137,207,240
32
+ Baby blue eyes,161,202,241
33
+ Baby pink,244,194,194
34
+ Ball Blue,33,171,205
35
+ Banana Mania,250,231,181
36
+ Banana yellow,255,225,53
37
+ Battleship grey,132,132,130
38
+ Bazaar,152,119,123
39
+ Beau blue,188,212,230
40
+ Beaver,159,129,112
41
+ Beige,245,245,220
42
+ Bisque,255,228,196
43
+ chocolate,134,68,40
44
+ Bittersweet,254,111,94
45
+ Black,0,0,0
46
+ Blanched Almond,255,235,205
47
+ Bleu de France,49,140,231
48
+ Blizzard Blue,172,229,238
49
+ Blond,250,240,190
50
+ Blue,0,0,255
51
+ Blue Bell,162,162,208
52
+ Blue Gray,102,153,204
53
+ Blue green,13,152,186
54
+ Blue purple,138,43,226
55
+ Blue violet,138,43,226
56
+ Blush,222,93,131
57
+ Bole,121,68,59
58
+ Bondi blue,0,149,182
59
+ Bone,227,218,201
60
+ Boston University Red,204,0,0
61
+ Bottle green,0,106,78
62
+ Boysenberry,135,50,96
63
+ Brandeis blue,0,112,255
64
+ Brass,181,166,66
65
+ Brick red,203,65,84
66
+ Bright cerulean,29,172,214
67
+ Bright green,102,255,0
68
+ Bright lavender,191,148,228
69
+ Bright maroon,195,33,72
70
+ Bright pink,255,0,127
71
+ Bright turquoise,8,232,222
72
+ Bright ube,209,159,232
73
+ Brilliant lavender,244,187,255
74
+ Brilliant rose,255,85,163
75
+ Brink pink,251,96,127
76
+ British racing green,0,66,37
77
+ Bronze,205,127,50
78
+ Brown,165,42,42
79
+ Bubble gum,255,193,204
80
+ Bubbles,231,254,255
81
+ Buff,240,220,130
82
+ Bulgarian rose,72,6,7
83
+ Burgundy,128,0,32
84
+ light wood,222,184,135
85
+ Burnt orange,204,85,0
86
+ Burnt sienna,233,116,81
87
+ Burnt umber,138,51,36
88
+ Byzantine,189,51,164
89
+ Byzantium,112,41,99
90
+ CG Blue,0,122,165
91
+ CG Red,224,60,49
92
+ Cadet,83,104,114
93
+ Cadet blue,95,158,160
94
+ Cadet grey,145,163,176
95
+ Cadmium green,0,107,60
96
+ Cadmium orange,237,135,45
97
+ Cadmium red,227,0,34
98
+ Cadmium yellow,255,246,0
99
+ blueish purple,108,127,191
100
+ onion,150,0,85
101
+ Cal Poly Pomona green,30,77,43
102
+ Cambridge Blue,163,193,173
103
+ Camel,193,154,107
104
+ Camouflage green,120,134,107
105
+ Canary,255,255,153
106
+ Canary yellow,255,239,0
107
+ Candy apple red,255,8,0
108
+ Candy pink,228,113,122
109
+ Capri,0,191,255
110
+ reddish brown,165,42,42
111
+ Cardinal,196,30,58
112
+ Caribbean green,0,204,153
113
+ Carmine,255,0,64
114
+ Carmine pink,235,76,66
115
+ Carmine red,255,0,56
116
+ Carnation pink,255,166,201
117
+ Carnelian,179,27,27
118
+ Carolina blue,153,186,221
119
+ Carrot orange,237,145,33
120
+ Celadon,172,225,175
121
+ Celeste,178,255,255
122
+ Celestial blue,73,151,208
123
+ Cerise,222,49,99
124
+ Cerise pink,236,59,131
125
+ Cerulean,0,123,167
126
+ Cerulean blue,42,82,190
127
+ brown,160,120,90
128
+ Champagne,250,214,165
129
+ Charcoal,54,69,79
130
+ Chartreuse,127,255,0
131
+ Cherry,222,49,99
132
+ Cherry blossom pink,255,183,197
133
+ Chestnut,205,92,92
134
+ Chocolate,210,105,30
135
+ Chrome yellow,255,167,0
136
+ Cinereous,152,129,123
137
+ Cinnabar,227,66,52
138
+ Cinnamon,210,105,30
139
+ Citrine,228,208,10
140
+ Classic rose,251,204,231
141
+ Cobalt,0,71,171
142
+ Cocoa brown,210,105,30
143
+ Coffee,111,78,55
144
+ Columbia blue,155,221,255
145
+ Cool black,0,46,99
146
+ Cool grey,140,146,172
147
+ Copper,184,115,51
148
+ Copper rose,153,102,102
149
+ Reddish orange,255,56,0
150
+ Coral,255,127,80
151
+ Coral pink,248,131,121
152
+ Coral red,255,64,64
153
+ Cordovan,137,63,69
154
+ Corn,251,236,93
155
+ Cornell Red,179,27,27
156
+ Cornflower,101,147,245
157
+ Cornflower blue,100,147,247
158
+ ivory,255,248,220
159
+ Cosmic latte,255,248,231
160
+ Cotton candy,255,188,217
161
+ Cream,255,253,208
162
+ Crimson,220,20,60
163
+ Crimson Red,153,0,0
164
+ Crimson glory,190,0,50
165
+ Cyan,0,255,255
166
+ Daffodil,255,255,49
167
+ Dandelion,240,225,48
168
+ Dark blue,0,0,139
169
+ Dark brown,101,67,33
170
+ Dark byzantium,93,57,84
171
+ Dark candy apple red,164,0,0
172
+ Dark cerulean,8,69,126
173
+ Dark chestnut,152,105,96
174
+ Dark coral,205,91,69
175
+ Dark cyan,0,139,139
176
+ Dark electric blue,83,104,120
177
+ Dark goldenrod,184,134,11
178
+ Dark gray,169,169,169
179
+ Dark green,0,100,0
180
+ Dark jungle green,26,36,33
181
+ Dark khaki,189,183,107
182
+ Dark lava,72,60,50
183
+ Dark lavender,115,79,150
184
+ Dark magenta,139,0,139
185
+ Dark midnight blue,0,51,102
186
+ Dark olive,75,92,9
187
+ very dark olive,39,62,6
188
+ Dark orange,255,140,0
189
+ Dark orchid,153,50,204
190
+ Dark pastel blue,119,158,203
191
+ Dark pastel green,3,192,60
192
+ Dark pastel purple,150,111,214
193
+ Dark pastel red,194,59,34
194
+ Dark pink,231,84,128
195
+ Dark powder blue,0,51,153
196
+ Dark raspberry,135,38,87
197
+ Dark red,139,0,0
198
+ Dark salmon,233,150,122
199
+ Dark scarlet,86,3,25
200
+ Dark sea green,143,188,143
201
+ Dark sienna,60,20,20
202
+ Dark slate blue,72,61,139
203
+ Dark slate gray,47,79,79
204
+ Dark spring green,23,114,69
205
+ Dark tan,145,129,81
206
+ Dark tangerine,255,168,18
207
+ Dark taupe,72,60,50
208
+ Dark terra cotta,204,78,92
209
+ Dark turquoise,0,206,209
210
+ Dark violet,148,0,211
211
+ Dartmouth green,0,105,62
212
+ Davy grey,85,85,85
213
+ Debian red,215,10,83
214
+ Deep carmine,169,32,62
215
+ Deep carmine pink,239,48,56
216
+ Deep carrot orange,233,105,44
217
+ Deep cerise,218,50,135
218
+ Deep champagne,250,214,165
219
+ Deep chestnut,185,78,72
220
+ Deep coffee,112,66,65
221
+ Deep fuchsia,193,84,193
222
+ Deep jungle green,0,75,73
223
+ Deep lilac,153,85,187
224
+ Deep magenta,204,0,204
225
+ Deep peach,255,106,113
226
+ Deep pink,255,20,147
227
+ Deep saffron,255,153,51
228
+ Deep sky blue,0,191,255
229
+ Denim,21,96,189
230
+ Desert,193,154,107
231
+ Desert sand,237,201,175
232
+ Dim gray,105,105,105
233
+ Dodger blue,30,144,255
234
+ Dogwood rose,215,24,104
235
+ Dollar bill,133,187,101
236
+ Drab,150,113,23
237
+ Duke blue,0,0,156
238
+ Earth yellow,225,169,95
239
+ Ecru,194,178,128
240
+ Eggplant,97,64,81
241
+ Eggshell,240,234,214
242
+ Egyptian blue,16,52,166
243
+ Electric blue,125,249,255
244
+ Electric crimson,255,0,63
245
+ Electric cyan,0,255,255
246
+ Electric green,0,255,0
247
+ Electric indigo,111,0,255
248
+ Electric lavender,244,187,255
249
+ Electric lime,204,255,0
250
+ Electric purple,191,0,255
251
+ Electric ultramarine,63,0,255
252
+ Electric violet,143,0,255
253
+ Electric yellow,255,255,0
254
+ Emerald,80,200,120
255
+ Eton blue,150,200,162
256
+ Fallow,193,154,107
257
+ Falu red,128,24,24
258
+ Famous,255,0,255
259
+ Fandango,181,51,137
260
+ Fashion fuchsia,244,0,161
261
+ Fawn,229,170,112
262
+ greenish grey,77,93,83
263
+ Fern,113,188,120
264
+ Fern green,79,121,66
265
+ Ferrari Red,255,40,0
266
+ Field drab,108,84,30
267
+ Fire engine red,206,32,41
268
+ Firebrick,178,34,34
269
+ Flame,226,88,34
270
+ Flamingo pink,252,142,172
271
+ dark ivory,247,233,142
272
+ Flax,238,220,130
273
+ Floral white,255,250,240
274
+ Fluorescent orange,255,191,0
275
+ Fluorescent pink,255,20,147
276
+ Fluorescent yellow,204,255,0
277
+ Folly,255,0,79
278
+ Forest,34,139,34
279
+ French beige,166,123,91
280
+ French blue,0,114,187
281
+ French lilac,134,96,142
282
+ French rose,246,74,138
283
+ Fuchsia,255,0,255
284
+ Fuchsia pink,255,119,255
285
+ Fulvous,228,132,0
286
+ Fuzzy Wuzzy,204,102,102
287
+ grey,220,220,220
288
+ Mustard,228,155,15
289
+ Ghost white,248,248,255
290
+ Ginger,176,101,0
291
+ Glaucous,96,130,182
292
+ Glitter,230,232,250
293
+ Gold,241,190,21
294
+ Golden brown,153,101,21
295
+ Golden poppy,252,194,0
296
+ Golden yellow,255,223,0
297
+ Goldenrod,218,165,32
298
+ Granny Smith Apple,168,228,160
299
+ Gray,128,128,128
300
+ Gray asparagus,70,89,69
301
+ Green,0,255,0
302
+ Green Blue,17,100,180
303
+ Green yellow,173,255,47
304
+ brownish grey,169,154,134
305
+ fluorescent green,0,255,127
306
+ purple,102,56,84
307
+ Han blue,68,108,207
308
+ Han purple,82,24,250
309
+ Hansa yellow,233,214,107
310
+ Harlequin,63,255,0
311
+ Harvard crimson,201,0,22
312
+ Harvest Gold,218,145,0
313
+ Heart Gold,128,128,0
314
+ Heliotrope,223,115,255
315
+ Hollywood cerise,244,0,161
316
+ Honeydew,240,255,240
317
+ Hooker green,73,121,107
318
+ Hot magenta,255,29,206
319
+ Hot pink,255,105,180
320
+ Hunter green,53,94,59
321
+ lime,252,247,94
322
+ Inchworm,178,236,93
323
+ India green,19,136,8
324
+ Indian red,205,92,92
325
+ Indian yellow,227,168,87
326
+ Indigo,75,0,130
327
+ International Klein Blue,0,47,167
328
+ International orange,255,79,0
329
+ Iris,90,79,207
330
+ Isabelline,244,240,236
331
+ Islamic green,0,144,0
332
+ Ivory,255,255,240
333
+ Jade,0,168,107
334
+ Jasmine,248,222,126
335
+ Jasper,215,59,62
336
+ blueberry jam,72,77,106
337
+ Jonquil,250,218,94
338
+ June bud,189,218,87
339
+ Jungle green,41,171,135
340
+ KU Crimson,232,0,13
341
+ Kelly green,76,187,23
342
+ Khaki,195,176,145
343
+ La Salle Green,8,120,48
344
+ Languid lavender,214,202,221
345
+ Lapis lazuli,38,97,156
346
+ Laser Lemon,254,254,34
347
+ Laurel green,169,186,157
348
+ Lava,207,16,32
349
+ Lavender,230,230,250
350
+ Lavender blue,204,204,255
351
+ Lavender blush,255,240,245
352
+ Lavender gray,196,195,208
353
+ Lavender indigo,148,87,235
354
+ Lavender magenta,238,130,238
355
+ Lavender mist,230,230,250
356
+ Lavender pink,251,174,210
357
+ Lavender purple,150,123,182
358
+ Lavender rose,251,160,227
359
+ Lawn green,124,252,0
360
+ Lemon,255,247,0
361
+ Lemon Yellow,254,242,80
362
+ Lemon chiffon,255,250,205
363
+ green Lemon,227,255,0
364
+ greenish Lemon,277,255,0
365
+ raw lemon,227,255,0
366
+ Light Crimson,245,105,145
367
+ Light pink,230,143,172
368
+ Light apricot,253,213,177
369
+ Light blue,173,216,230
370
+ Light brown,181,101,29
371
+ Light carmine pink,230,103,113
372
+ Light coral,240,128,128
373
+ Light cornflower blue,147,204,234
374
+ Light cyan,224,255,255
375
+ Light fuchsia pink,249,132,239
376
+ Light goldenrod yellow,250,250,210
377
+ Light gray,211,211,211
378
+ Light green,144,238,144
379
+ Light khaki,240,230,140
380
+ Light pastel purple,177,156,217
381
+ Light pink,255,182,193
382
+ Light salmon,255,160,122
383
+ Light salmon pink,255,153,153
384
+ Light sea green,32,178,170
385
+ Light sky blue,135,206,250
386
+ Light slate gray,119,136,153
387
+ Light taupe,179,139,109
388
+ Light yellow,255,255,237
389
+ Lilac,200,162,200
390
+ Lime,191,255,0
391
+ Lime green,50,205,50
392
+ Lincoln green,25,89,5
393
+ Linen,250,240,230
394
+ Lion,193,154,107
395
+ Liver,83,75,79
396
+ Lust,230,32,32
397
+ MSU Green,24,69,59
398
+ Macaroni and Cheese,255,189,136
399
+ Magenta,255,0,255
400
+ Magic mint,170,240,209
401
+ Magnolia,248,244,255
402
+ Mahogany,192,64,0
403
+ Maize,251,236,93
404
+ Majorelle Blue,96,80,220
405
+ Malachite,11,218,81
406
+ Manatee,151,154,170
407
+ Mango Tango,255,130,67
408
+ Mantis,116,195,101
409
+ Maroon,128,0,0
410
+ Mauve,224,176,255
411
+ Mauve taupe,145,95,109
412
+ pink lipstick,239,152,170
413
+ Maya blue,115,194,251
414
+ Meat brown,229,183,59
415
+ Medium Persian blue,0,103,165
416
+ Medium aquamarine,102,221,170
417
+ Medium blue,0,0,205
418
+ Medium candy apple red,226,6,44
419
+ Medium carmine,175,64,53
420
+ Medium champagne,243,229,171
421
+ Medium electric blue,3,80,150
422
+ Medium jungle green,28,53,45
423
+ Medium lavender magenta,221,160,221
424
+ Medium orchid,186,85,211
425
+ Medium purple,147,112,219
426
+ Medium red violet,187,51,133
427
+ Medium sea green,60,179,113
428
+ Medium slate blue,123,104,238
429
+ Medium spring bud,201,220,135
430
+ Medium spring green,0,250,154
431
+ Medium taupe,103,76,71
432
+ Medium teal blue,0,84,180
433
+ Medium turquoise,72,209,204
434
+ Medium violet red,199,21,133
435
+ Melon,253,188,180
436
+ Midnight blue,25,25,112
437
+ Midnight green,0,73,83
438
+ Mikado yellow,255,196,12
439
+ Mint,62,180,137
440
+ Mint cream,245,255,250
441
+ Mint green,152,255,152
442
+ Misty rose,255,228,225
443
+ Moccasin,250,235,215
444
+ Mode beige,150,113,23
445
+ Moonstone blue,115,169,194
446
+ Mordant red 19,174,12,0
447
+ Moss green,173,223,173
448
+ Mountain Meadow,48,186,143
449
+ Mountbatten pink,153,122,141
450
+ Mulberry,197,75,140
451
+ Munsell,242,243,244
452
+ Mustard,255,219,88
453
+ Myrtle,33,66,30
454
+ Nadeshiko pink,246,173,198
455
+ Napier green,42,128,0
456
+ Naples yellow,250,218,94
457
+ Navajo white,255,222,173
458
+ Navy blue,0,0,128
459
+ Neon Carrot,255,163,67
460
+ Neon fuchsia,254,89,194
461
+ Neon green,57,255,20
462
+ Non photo blue,164,221,237
463
+ North Texas Green,5,144,51
464
+ Ocean Boat Blue,0,119,190
465
+ deep ocean blue,0,60,95
466
+ Ochre,204,119,34
467
+ Office green,0,128,0
468
+ Old gold,207,181,59
469
+ Old lace,253,245,230
470
+ Old lavender,121,104,120
471
+ Old mauve,103,49,71
472
+ Old rose,192,128,129
473
+ Olive,106,118,12
474
+ light Olive,134,141,7
475
+ very light olive,157,174,17
476
+ Olivine,154,185,115
477
+ Onyx,15,15,15
478
+ Opera mauve,183,132,167
479
+ Orange,255,165,0
480
+ Orange Yellow,248,213,104
481
+ Orange peel,255,159,0
482
+ Orange red,255,69,0
483
+ Orchid,218,112,214
484
+ Otter brown,101,67,33
485
+ Outer Space,65,74,76
486
+ Outrageous Orange,255,110,74
487
+ Oxford Blue,0,33,71
488
+ Pacific Blue,28,169,201
489
+ Pakistan green,0,102,0
490
+ Palatinate blue,39,59,226
491
+ Palatinate purple,104,40,96
492
+ Pale aqua,188,212,230
493
+ Pale blue,175,238,238
494
+ Pale brown,152,118,84
495
+ Pale carmine,175,64,53
496
+ Pale cerulean,155,196,226
497
+ Pale chestnut,221,173,175
498
+ Pale copper,218,138,103
499
+ Pale cornflower blue,171,205,239
500
+ Pale gold,230,190,138
501
+ Pale goldenrod,238,232,170
502
+ Pale green,152,251,152
503
+ Pale lavender,220,208,255
504
+ Pale magenta,249,132,229
505
+ Pale pink,250,218,221
506
+ Pale plum,221,160,221
507
+ Pale red violet,219,112,147
508
+ Pale robin egg blue,150,222,209
509
+ Pale silver,201,192,187
510
+ Pale spring bud,236,235,189
511
+ Pale taupe,188,152,126
512
+ Pale violet red,219,112,147
513
+ Pansy purple,120,24,74
514
+ Papaya whip,255,239,213
515
+ Paris Green,80,200,120
516
+ Pastel blue,174,198,207
517
+ Pastel brown,131,105,83
518
+ Pastel gray,207,207,196
519
+ Pastel green,119,221,119
520
+ Pastel magenta,244,154,194
521
+ Pastel orange,255,179,71
522
+ Pastel pink,255,209,220
523
+ Pastel purple,179,158,181
524
+ Pastel red,255,105,97
525
+ Pastel violet,203,153,201
526
+ Pastel yellow,253,253,150
527
+ Patriarch,128,0,128
528
+ Payne grey,83,104,120
529
+ Peach,255,145,84
530
+ very deep Peach,201,56,103
531
+ light peach,255,190,114
532
+ very light peach,255,221,164
533
+ Pear,209,226,49
534
+ Pearl,234,224,200
535
+ Pearl Aqua,136,216,192
536
+ Peridot,230,226,0
537
+ Periwinkle,204,204,255
538
+ Persian blue,28,57,187
539
+ Persian indigo,50,18,122
540
+ Persian orange,217,144,88
541
+ Persian pink,247,127,190
542
+ Persian plum,112,28,28
543
+ Persian red,204,51,51
544
+ Persian rose,254,40,162
545
+ Phlox,223,0,255
546
+ dark blue,0,15,137
547
+ very dark green,18,53,36
548
+ Piggy pink,253,221,230
549
+ Pine green,1,121,111
550
+ Pink,255,192,203
551
+ Royal pink,231,89,172
552
+ Pink Flamingo,252,116,253
553
+ Pink Sherbet,247,143,167
554
+ Pink pearl,231,172,207
555
+ Pistachio,147,197,114
556
+ Platinum,229,228,226
557
+ Plum,221,160,221
558
+ Portland Orange,255,90,54
559
+ Powder blue,176,224,230
560
+ Princeton orange,255,143,0
561
+ Prussian blue,0,49,83
562
+ Psychedelic purple,223,0,255
563
+ Puce,204,136,153
564
+ Pumpkin,255,117,24
565
+ Purple,140,0,191
566
+ Purple Heart,105,53,156
567
+ Purple Mountain Majesty,157,129,186
568
+ Purple mountain majesty,150,120,182
569
+ Purple pizzazz,254,78,218
570
+ Purple taupe,80,64,77
571
+ Rackley,93,138,168
572
+ Radical Red,255,53,94
573
+ Raspberry,227,11,93
574
+ Raspberry glace,145,95,109
575
+ Raspberry pink,226,80,152
576
+ Raspberry rose,179,68,108
577
+ Raw Sienna,214,138,89
578
+ Razzle dazzle rose,255,51,204
579
+ Razzmatazz,227,37,107
580
+ royal red,171,35,48
581
+ Red,255,0,0
582
+ light red,255,127,127
583
+ Red Orange,255,83,73
584
+ Red brown,165,42,42
585
+ Red violet,199,21,133
586
+ Rich black,0,64,64
587
+ Rich carmine,215,0,64
588
+ Rich electric blue,8,146,208
589
+ Rich lilac,182,102,210
590
+ Rich maroon,176,48,96
591
+ Rifle green,65,72,51
592
+ Robin Egg Blue,31,206,203
593
+ Rose,255,0,127
594
+ Rose bonbon,249,66,158
595
+ Rose ebony,103,72,70
596
+ Rose gold,183,110,121
597
+ Rose madder,227,38,54
598
+ Rose pink,255,102,204
599
+ Rose quartz,170,152,169
600
+ Rose taupe,144,93,93
601
+ Rose vale,171,78,82
602
+ Rosewood,101,0,11
603
+ Rosso corsa,212,0,0
604
+ Rosy brown,188,143,143
605
+ Royal azure,0,56,168
606
+ Royal blue,65,105,225
607
+ Royal fuchsia,202,44,146
608
+ Royal purple,96,63,131
609
+ Ruby,224,17,95
610
+ Ruddy,255,0,40
611
+ Ruddy brown,187,101,40
612
+ Ruddy pink,225,142,150
613
+ Rufous,168,28,7
614
+ Russet,128,70,27
615
+ Rust,183,65,14
616
+ Sacramento State green,0,86,63
617
+ Saddle brown,139,69,19
618
+ Safety orange,255,103,0
619
+ Saffron,244,196,48
620
+ Saint Patrick Blue,35,41,122
621
+ Salmon,255,140,105
622
+ Salmon pink,255,145,164
623
+ Sand,194,178,128
624
+ Sand dune,150,113,23
625
+ Sandstorm,236,213,64
626
+ Sandy brown,244,164,96
627
+ Sandy taupe,150,113,23
628
+ Sap green,80,125,42
629
+ Sapphire,15,82,186
630
+ Satin sheen gold,203,161,53
631
+ Scarlet,255,36,0
632
+ School bus yellow,255,216,0
633
+ Screamin Green,118,255,122
634
+ Sea blue,0,105,148
635
+ Sea green,61,181,168
636
+ Seal brown,50,20,20
637
+ Seashell,255,245,238
638
+ Selective yellow,255,186,0
639
+ Sepia,112,66,20
640
+ Shadow,138,121,93
641
+ Shamrock,69,206,162
642
+ Shamrock green,0,158,96
643
+ Shocking pink,252,15,192
644
+ Sienna,136,45,23
645
+ Silver,192,192,192
646
+ dark orange,203,65,11
647
+ greenish blue,0,116,116
648
+ Sky blue,135,206,235
649
+ Sky magenta,207,113,175
650
+ Slate blue,106,90,205
651
+ Slate gray,112,128,144
652
+ dark blue,0,51,153
653
+ Smokey topaz,147,61,65
654
+ Smoky black,16,12,8
655
+ Snow,255,250,250
656
+ Spiro Disco Ball,15,192,252
657
+ Spring bud,167,252,0
658
+ Spring green,0,255,127
659
+ Steel blue,70,130,180
660
+ Stil de grain yellow,250,218,94
661
+ deep red,153,0,0
662
+ Storm cloud,0,128,128
663
+ Straw,228,217,111
664
+ turmeric yellow,255,204,51
665
+ Sunset,250,214,165
666
+ Sunset Orange,253,94,83
667
+ Tan,210,180,140
668
+ Tangelo,249,77,0
669
+ Tangerine,242,133,0
670
+ Tangerine yellow,255,204,0
671
+ Taupe,72,60,50
672
+ Taupe gray,139,133,137
673
+ Tawny,205,87,0
674
+ Tea green,208,240,192
675
+ Tea rose,244,194,194
676
+ Teal,0,128,128
677
+ Teal blue,54,117,136
678
+ Teal green,0,109,91
679
+ Terra cotta,226,114,91
680
+ Thistle,216,191,216
681
+ dull pink,222,111,161
682
+ Tickle Me Pink,252,137,172
683
+ Tiffany Blue,10,186,181
684
+ Tiger eye,224,141,60
685
+ Timberwolf,219,215,210
686
+ Titanium yellow,238,230,0
687
+ Tomato,255,99,71
688
+ Toolbox,116,108,192
689
+ Topaz,255,200,124
690
+ Tractor red,253,14,53
691
+ Trolley Grey,128,128,128
692
+ Tropical rain forest,0,117,94
693
+ True Blue,0,115,207
694
+ Tufts Blue,65,125,193
695
+ Tumbleweed,222,170,136
696
+ Turkish rose,181,114,129
697
+ Turquoise,48,213,200
698
+ Turquoise blue,0,255,239
699
+ Turquoise green,160,214,180
700
+ Tuscan red,102,66,77
701
+ Twilight lavender,138,73,107
702
+ Tyrian purple,102,2,60
703
+ UA blue,0,51,170
704
+ UA red,217,0,76
705
+ UCLA Blue,83,104,149
706
+ UCLA Gold,255,179,0
707
+ UFO Green,60,208,112
708
+ UP Forest green,1,68,33
709
+ UP Maroon,123,17,19
710
+ USC Cardinal,153,0,0
711
+ USC Gold,255,204,0
712
+ Ube,136,120,195
713
+ Ultra pink,255,111,255
714
+ Ultramarine,18,10,143
715
+ Ultramarine blue,65,102,245
716
+ Umber,99,81,71
717
+ United Nations blue,91,146,229
718
+ University of California Gold,183,135,39
719
+ mellow Yellow,255,255,102
720
+ keras red,174,32,41
721
+ dark yellow,225,173,33
722
+ Utah Crimson,211,0,63
723
+ Vanilla,243,229,171
724
+ Vegas gold,197,179,88
725
+ Venetian red,200,8,21
726
+ Verdigris,67,179,174
727
+ Vermilion,227,66,52
728
+ Veronica,160,32,240
729
+ Violet,149,0,255
730
+ Violet Blue,138,43,226
731
+ Violet Red,247,83,148
732
+ Viridian,64,130,109
733
+ Vivid auburn,146,39,36
734
+ Vivid burgundy,159,29,53
735
+ Vivid cerise,218,29,129
736
+ Vivid tangerine,255,160,137
737
+ Vivid violet,159,0,255
738
+ Warm black,0,66,66
739
+ Waterspout,0,255,255
740
+ Wenge,100,84,82
741
+ Wheat,245,222,179
742
+ White,255,255,255
743
+ pure white,255,255,255
744
+ White smoke,245,245,245
745
+ Wild Strawberry,255,67,164
746
+ Wild Watermelon,252,108,133
747
+ Wild blue yonder,162,173,208
748
+ Wine,114,47,55
749
+ Wisteria,201,160,220
750
+ Xanadu,115,134,120
751
+ Yale Blue,15,77,146
752
+ Yellow,255,255,0
753
+ Yellow Orange,255,174,66
754
+ Yellow green,154,205,50
755
+ deep blue,0,20,168
756
+ ,44,22,8
datasets/wikipedia_x11_colors.csv ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Name,R,G,B
2
+ Alice Blue,240,248,255
3
+ Antique White,250,235,215
4
+ Aqua,0,255,255
5
+ Aquamarine,127,255,212
6
+ Azure,0,127,255
7
+ Beige,245,245,220
8
+ Bisque,255,228,196
9
+ Black,0,0,0
10
+ Blanched Almond,255,235,205
11
+ Blue,0,0,255
12
+ Violet Blue,138,43,226
13
+ Reddish Brown,165,42,42
14
+ Yellow Green,154,205,50
15
+ Cadet Blue,95,158,160
16
+ Chartreuse,127,255,0
17
+ chocolate,134,68,40
18
+ Coral,255,127,80
19
+ Cornflower,101,147,245
20
+ Corn silk,255,248,220
21
+ Crimson,220,20,60
22
+ Cyan,0,255,255
23
+ Dark Blue,0,0,139
24
+ Dark Cyan,0,139,139
25
+ Dark Goldenrod,184,134,11
26
+ Dark Gray,169,169,169
27
+ Dark Green,0,100,0
28
+ Dark Khaki,189,183,107
29
+ Dark Magenta,139,0,139
30
+ Dark Green Olive,85,107,47
31
+ Dark Orange,255,140,0
32
+ Dark Orchid,153,50,204
33
+ Dark Red,139,0,0
34
+ Dark Salmon,233,150,122
35
+ Dark Sea Green,143,188,143
36
+ Dark Slate Blue,72,61,139
37
+ Dark Slate Gray,47,79,79
38
+ Dark Turquoise,0,206,209
39
+ Dark Violet,148,0,211
40
+ Deep Pink,255,20,147
41
+ Deep Sky Blue,0,191,255
42
+ Dim Gray,105,105,105
43
+ Dodger Blue,30,144,255
44
+ Firebrick,178,34,34
45
+ Floral White,255,250,240
46
+ Green Forest,34,139,34
47
+ Fuchsia,255,0,255
48
+ green Apple,141,182,0
49
+ Ghost White,248,248,255
50
+ Gold,255,215,0
51
+ Goldenrod,218,165,32
52
+ Gray,190,190,190
53
+ Web Gray,128,128,128
54
+ Green,0,255,0
55
+ Web Green,0,128,0
56
+ Green Yellow,173,255,47
57
+ Honeydew,240,255,240
58
+ Hot Pink,255,105,180
59
+ Indian Red,205,92,92
60
+ Indigo,75,0,130
61
+ Ivory,255,255,240
62
+ Khaki,240,230,140
63
+ Lavender,230,230,250
64
+ Lavender Blush,255,240,245
65
+ Lawn Green,124,252,0
66
+ Lemon Chiffon,255,250,205
67
+ Light Blue,173,216,230
68
+ Light Coral,240,128,128
69
+ Light Cyan,224,255,255
70
+ Light Goldenrod,250,250,210
71
+ Light Gray,211,211,211
72
+ Light Green,144,238,144
73
+ Light Pink,255,182,193
74
+ Light Salmon,255,160,122
75
+ Light Sea Green,32,178,170
76
+ Light Sky Blue,135,206,250
77
+ Light Slate Gray,119,136,153
78
+ Light Steel Blue,176,196,222
79
+ Light Yellow,255,255,224
80
+ Lime Lime,0,255,0
81
+ Lime Green,50,205,50
82
+ Linen,250,240,230
83
+ Magenta,255,0,255
84
+ Maroon,176,48,96
85
+ Web Maroon,127,0,0
86
+ Medium Aquamarine,102,205,170
87
+ Medium Blue,0,0,205
88
+ Medium Orchid,186,85,211
89
+ Medium Purple,147,112,219
90
+ Medium Sea Green,60,179,113
91
+ Medium Slate Blue,123,104,238
92
+ Medium Spring Green,0,250,154
93
+ Medium Turquoise,72,209,204
94
+ Medium Red Violet,199,21,133
95
+ Midnight Blue,25,25,112
96
+ Mint Cream,245,255,250
97
+ Misty Rose,255,228,225
98
+ Moccasin,255,228,181
99
+ Navajo White,255,222,173
100
+ Navy Blue,0,0,128
101
+ Old Lace,253,245,230
102
+ Olive,128,128,0
103
+ Olive Drab,107,142,35
104
+ Orange,255,165,0
105
+ Reddish Orange,255,69,0
106
+ Orchid,218,112,214
107
+ Pale Goldenrod,238,232,170
108
+ Pale Green,152,251,152
109
+ Pale Turquoise,175,238,238
110
+ Pale Violet Red,219,112,147
111
+ Papaya Whip,255,239,213
112
+ Peach Puff,255,218,185
113
+ Peru,205,133,63
114
+ Pink,255,192,203
115
+ Plum,221,160,221
116
+ Powder Blue,176,224,230
117
+ Purple Purple,160,32,240
118
+ Web Purple,127,0,127
119
+ Rebecca Purple,102,51,153
120
+ Red,255,0,0
121
+ Rosy Brown,188,143,143
122
+ Royal Blue,65,105,225
123
+ Saddle Brown,139,69,19
124
+ Salmon,250,128,114
125
+ Sandy Brown,244,164,96
126
+ Sea Green,46,139,87
127
+ Seashell,255,245,238
128
+ Sienna,160,82,45
129
+ Silver,192,192,192
130
+ Sky Blue,135,206,235
131
+ Slate Blue,106,90,205
132
+ Slate Gray,112,128,144
133
+ Snow,255,250,250
134
+ Spring Green,0,255,127
135
+ Blue Steel,70,130,180
136
+ Tan,210,180,140
137
+ Teal,0,128,128
138
+ Thistle,216,191,216
139
+ Tomato,255,99,71
140
+ Turquoise,64,224,208
141
+ Violet,238,130,238
142
+ Wheat,245,222,179
143
+ White,255,255,255
144
+ White Smoke,245,245,245
145
+ Yellow,255,255,0
test.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from ModelLoader import Colgen1
2
+
3
+
4
+
5
+ model_dir="models/colgen1/"
6
+ model=Colgen1(model_dir)
7
+
8
+ out=model.predict(['Red','green','blue','yellow'])
9
+ print(out)
wordtorgb(word2vec).ipynb ADDED
The diff for this file is too large to render. See raw diff