Skip to content

Commit 13cd28d

Browse files
committed
Initial Commit
1 parent ad463b3 commit 13cd28d

File tree

6 files changed

+2367
-2
lines changed

6 files changed

+2367
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/__pycache__
2+
.vscode

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# Colorization_using_GANs_and_UNet
2-
This is a project were grayscale images are converted to coloured images using ML.
1+
To be done shortly

bnw.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from fastai.vision import *
2+
from PIL import Image, ImageDraw, ImageFont
3+
4+
class bnw(object):
5+
def __init__(self, path_lr, path_hr):
6+
self.path_lr = path_lr
7+
self.path_hr = path_hr
8+
9+
def __call__(self, fn, i):
10+
dest = self.path_lr/fn.relative_to(self.path_hr)
11+
dest.parent.mkdir(parents=True, exist_ok=True)
12+
img = PIL.Image.open(fn)
13+
img = img.convert(mode='L')
14+
img.save(dest)

gan.ipynb

+679
Large diffs are not rendered by default.

gantrain1.ipynb

+606
Large diffs are not rendered by default.

train256.ipynb

+1,065
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)