Skip to content

Commit 1ae8a93

Browse files
author
Sekhar Roy
committed
ReadME and melNET_augData.py modified
1 parent 7780c2e commit 1ae8a93

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

ReadME_Melanoma_Data.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

ReadME_Run_melNET.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
01) Install Anaconda
2+
02) Go to Environments >> Create. Then name it (E.g.: melNET_env) and give Python Version (E.g.: 3.7). Hit �Create� !
3+
03) Install packages: opencv, tensorflow
4+
04) Download melNET from git:https://github.com/roy-shudipto/melNET.git and unzip
5+
05) Digital data download Link: https://drive.google.com/open?id=1UuLg6uqMg0EYbP7fRZwxHg_IxbHQS-xx
6+
Or,
7+
Dermoscopic data download Link: https://drive.google.com/open?id=1jzCzDgw2lxkAppQoApOryI4aVTSU9sUs
8+
06) Unzip the dataset and put it in the melNET folder
9+
07) Install PyCharm
10+
08) Open "melNET.py" using PyCharm
11+
09) Set �Python Interpreter� to the new Conda Environment (E.g.:melNET_env)
12+
10) Go to Run >> Run >> melNET
13+
11) Follow the prompt!

melNET_augData.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def quit_button_pressed():
3838
_mirror = BooleanVar()
3939
_rotate = BooleanVar()
4040
_five_fold = BooleanVar()
41+
_resize = BooleanVar()
4142
_rotate_ang = IntVar(0)
4243
_blur_thresh = IntVar(0)
4344

@@ -51,16 +52,17 @@ def quit_button_pressed():
5152
Checkbutton(root, text="Sharpen", variable=_sharpen).grid(row=6, sticky=W)
5253
Checkbutton(root, text="Mirror", variable=_mirror).grid(row=7, sticky=W)
5354
Checkbutton(root, text="Rotate All", variable=_rotate).grid(row=8, sticky=W)
55+
Checkbutton(root, text="Resize (400 x 400)", variable=_resize).grid(row=10, sticky=W)
5456

5557
Label(root, text="Angle Span in Degrees: ").grid(row=8, column=2)
5658
Label(root, text="(Default: 45)").grid(row=9, column=2)
5759
Entry(root, textvariable=_rotate_ang).grid(row=8, column=3)
5860
Label(root, text="Blur Threshold (Default=7):").grid(row=0, column=2)
5961
Entry(root, textvariable=_blur_thresh).grid(row=0, column=3)
6062

61-
Checkbutton(root, text="Five-Fold (Default: Single-Fold)", variable=_five_fold).grid(row=10, sticky=W)
62-
Button(root, text="Quit", command=quit_button_pressed, width=15).grid(row=11, column=2, sticky=W)
63-
Button(root, text="Apply", command=apply_button_pressed, width=15).grid(row=11, column=3, sticky=W)
63+
Checkbutton(root, text="Five-Fold (Default: Single-Fold)", variable=_five_fold).grid(row=11, sticky=W)
64+
Button(root, text="Quit", command=quit_button_pressed, width=15).grid(row=12, column=2, sticky=W)
65+
Button(root, text="Apply", command=apply_button_pressed, width=15).grid(row=12, column=3, sticky=W)
6466

6567
root.mainloop()
6668

@@ -75,6 +77,7 @@ def quit_button_pressed():
7577
sharpen = _sharpen.get()
7678
mirror = _mirror.get()
7779
rotate = _rotate.get()
80+
resize = _resize.get()
7881
global five_fold
7982
five_fold = _five_fold.get()
8083
rot_ang = _rotate_ang.get()
@@ -102,7 +105,7 @@ def quit_button_pressed():
102105
if del_blur:
103106
if blur_thresh is 0:
104107
blur_thresh = 7
105-
blur_detection.main(blur_thresh)
108+
melNET_blur_detection.main(blur_thresh)
106109

107110
# Number of folds
108111
global fold_num
@@ -140,6 +143,12 @@ def quit_button_pressed():
140143
for img in image_list:
141144
set_counter += 1
142145

146+
# Resizing
147+
if resize:
148+
width = 400
149+
height = 400
150+
img = cv2.resize(img, (width, height))
151+
143152
# Original Saving Code
144153
if original:
145154
file_naming(img, "O", folder, set_counter)

0 commit comments

Comments
 (0)