-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfeedModel.py
More file actions
22 lines (19 loc) · 743 Bytes
/
feedModel.py
File metadata and controls
22 lines (19 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# once images are manually reviewed, feed model with them so it can improve itself
import os
import shutil
print('Starting...')
folderAncient = os.listdir("./images/feeding/ancient")
for image in folderAncient:
if image.endswith(".jpg"):
try:
shutil.move("./images/feeding/ancient/" + image, './datasets/flats/ancient/')
except:
print("Possible duplicate found, take a look.")
folderModern = os.listdir("./images/feeding/modern")
for image in folderModern:
if image.endswith(".jpg"):
try:
shutil.move("./images/feeding/modern/" + image, './datasets/flats/modern/')
except:
print("Possible duplicate found, take a look.")
print('Done, model fed :)')