Skip to content

Commit 88c1ba9

Browse files
Finalized main file
1 parent fdbec63 commit 88c1ba9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737

3838

3939

40-
# for l in labels:
41-
# path = os.path.join("Data", l)
42-
# slicer.image_integrity_verification(path, delete_invalid=True)
43-
# slicer.resizer((500, 500), path)
44-
# coordinates = slicer.coordinate_compute((500, 500), (100, 100))
45-
# slicer.crop_segments(coordinates, path, "Sliced", l)
40+
for l in labels:
41+
path = os.path.join("Data", l)
42+
slicer.image_integrity_verification(path, delete_invalid=True)
43+
slicer.resizer((500, 500), path)
44+
coordinates = slicer.coordinate_compute((500, 500), (100, 100))
45+
slicer.crop_segments(coordinates, path, "Sliced", l)
4646

4747

4848

@@ -51,7 +51,7 @@
5151

5252
cnn = MAGIST_CNN("config.json")
5353

54-
# queue.put_queue(cnn, name="MAGIST_CNN_Trainer", priority=10)
54+
queue.put_queue(cnn, name="MAGIST_CNN_Trainer", priority=10)
5555

5656
from MAGIST.Utils.WebScraper.wikipedia import WikipediaScraper
5757
from MAGIST.NeuralDB.MongoUtils import AdminUtils

0 commit comments

Comments
 (0)