Spaces:
Runtime error
Runtime error
HAMIM-ML
commited on
Commit
•
7fd4eae
1
Parent(s):
9169c37
template and requirement added
Browse files- .github/workflows/.gitkeep +0 -0
- .gitignore +3 -0
- Dockerfile +0 -0
- app.py +0 -0
- config/config.yaml +0 -0
- main.py +0 -0
- params.yaml +0 -0
- requirements.txt +25 -0
- research/trials.ipynb +0 -0
- setup.py +31 -0
- src/imagecolorization/__init__.py +0 -0
- src/imagecolorization/config/__init__.py +0 -0
- src/imagecolorization/config/configuration.py +0 -0
- src/imagecolorization/constants/__init__.py +0 -0
- src/imagecolorization/entity/__init__.py +0 -0
- src/imagecolorization/logging/__init__.py +0 -0
- src/imagecolorization/pipeline/__init__.py +0 -0
- src/imagecolorization/utils/__init__.py +0 -0
- src/imagecolorization/utils/common.py +0 -0
- template.py +49 -0
.github/workflows/.gitkeep
ADDED
File without changes
|
.gitignore
CHANGED
@@ -160,3 +160,6 @@ cython_debug/
|
|
160 |
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
161 |
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
162 |
#.idea/
|
|
|
|
|
|
|
|
160 |
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
161 |
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
162 |
#.idea/
|
163 |
+
|
164 |
+
|
165 |
+
artifacts/*
|
Dockerfile
ADDED
File without changes
|
app.py
ADDED
File without changes
|
config/config.yaml
ADDED
File without changes
|
main.py
ADDED
File without changes
|
params.yaml
ADDED
File without changes
|
requirements.txt
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
datasets
|
2 |
+
sacrebleu
|
3 |
+
py7zr
|
4 |
+
pandas
|
5 |
+
nltk
|
6 |
+
tqdm
|
7 |
+
PyYAML
|
8 |
+
matplotlib
|
9 |
+
notebook
|
10 |
+
boto3
|
11 |
+
mypy-boto3-s3
|
12 |
+
python-box==6.0.2
|
13 |
+
ensure==1.0.2
|
14 |
+
fastapi==0.78.0
|
15 |
+
uvicorn==0.18.3
|
16 |
+
Jinja2==3.1.2
|
17 |
+
torchsummary
|
18 |
+
pytorch-lightning==2.1.0
|
19 |
+
opencv-python==4.8.0.74
|
20 |
+
Pillow==10.0.0
|
21 |
+
scikit-image
|
22 |
+
tqdm
|
23 |
+
|
24 |
+
-e .
|
25 |
+
|
research/trials.ipynb
ADDED
File without changes
|
setup.py
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import setuptools
|
2 |
+
|
3 |
+
with open('README.md', 'r', encoding='utf-8') as f:
|
4 |
+
long_description = f.read()
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
+
__version__ = '0.0.0'
|
9 |
+
|
10 |
+
|
11 |
+
REPO_NAME = "mage-colorization-mlops"
|
12 |
+
AUTHOR_USER_NAME = "HAKIM-ML"
|
13 |
+
SRC_REPO = "imagecolorization"
|
14 |
+
AUTHOR_EMAIL = "akborislamamir5555@gmail.com"
|
15 |
+
|
16 |
+
|
17 |
+
setuptools.setup(
|
18 |
+
name=SRC_REPO,
|
19 |
+
version=__version__,
|
20 |
+
author=AUTHOR_USER_NAME,
|
21 |
+
author_email=AUTHOR_EMAIL,
|
22 |
+
description="A small python package for NLP app",
|
23 |
+
long_description=long_description,
|
24 |
+
long_description_content="text/markdown",
|
25 |
+
url=f"https://github.com/{AUTHOR_USER_NAME}/{REPO_NAME}",
|
26 |
+
project_urls={
|
27 |
+
"Bug Tracker": f"https://github.com/{AUTHOR_USER_NAME}/{REPO_NAME}/issues",
|
28 |
+
},
|
29 |
+
package_dir={"": "src"},
|
30 |
+
packages=setuptools.find_packages(where="src")
|
31 |
+
)
|
src/imagecolorization/__init__.py
ADDED
File without changes
|
src/imagecolorization/config/__init__.py
ADDED
File without changes
|
src/imagecolorization/config/configuration.py
ADDED
File without changes
|
src/imagecolorization/constants/__init__.py
ADDED
File without changes
|
src/imagecolorization/entity/__init__.py
ADDED
File without changes
|
src/imagecolorization/logging/__init__.py
ADDED
File without changes
|
src/imagecolorization/pipeline/__init__.py
ADDED
File without changes
|
src/imagecolorization/utils/__init__.py
ADDED
File without changes
|
src/imagecolorization/utils/common.py
ADDED
File without changes
|
template.py
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
from pathlib import Path
|
3 |
+
import logging
|
4 |
+
|
5 |
+
|
6 |
+
logging.basicConfig(level=logging.INFO, format='[%(asctime)s]: %(message)s:')
|
7 |
+
|
8 |
+
project_name = 'imagecolorization'
|
9 |
+
|
10 |
+
list_of_files = [
|
11 |
+
'.github/workflows/.gitkeep',
|
12 |
+
f"src/{project_name}/__init__.py",
|
13 |
+
f"src/{project_name}/utils/__init__.py",
|
14 |
+
f"src/{project_name}/utils/common.py",
|
15 |
+
f"src/{project_name}/logging/__init__.py",
|
16 |
+
f"src/{project_name}/config/__init__.py",
|
17 |
+
f"src/{project_name}/config/configuration.py",
|
18 |
+
f"src/{project_name}/pipeline/__init__.py",
|
19 |
+
f"src/{project_name}/entity/__init__.py",
|
20 |
+
f"src/{project_name}/constants/__init__.py",
|
21 |
+
"config/config.yaml",
|
22 |
+
"params.yaml",
|
23 |
+
"app.py",
|
24 |
+
"main.py",
|
25 |
+
"Dockerfile",
|
26 |
+
"requirements.txt",
|
27 |
+
"setup.py",
|
28 |
+
"research/trials.ipynb",
|
29 |
+
]
|
30 |
+
|
31 |
+
|
32 |
+
for filepath in list_of_files:
|
33 |
+
filpath = Path(filepath)
|
34 |
+
filedir, filename = os.path.split(filepath)
|
35 |
+
|
36 |
+
|
37 |
+
if filedir != "":
|
38 |
+
os.makedirs(filedir, exist_ok=True)
|
39 |
+
logging.info(f"Creatin directory:{filedir} for the {filename}")
|
40 |
+
|
41 |
+
if (not os.path.exists(filepath)) or (os.path.getsize(filepath) == 0):
|
42 |
+
with open(filepath, 'w') as f:
|
43 |
+
pass
|
44 |
+
logging.info(f'Creating empty file: {filepath}')
|
45 |
+
|
46 |
+
|
47 |
+
else:
|
48 |
+
logging.info(f'{filename} is already exist')
|
49 |
+
|