Ulepszenie datasetu.
@ -13,7 +13,7 @@ import os
|
||||
import cv2
|
||||
import matplotlib.pyplot as plt
|
||||
# %%
|
||||
os.chdir(r"C:\Users\pittb\Documents\biedronkapp\BiedronkApp\biedronki_dataset")
|
||||
os.chdir(r"C:\Users\pittb\Documents\biedronkapp_2.0\BiedronkApp\biedronki_dataset")
|
||||
train_path="train"
|
||||
test_path="test"
|
||||
# %%
|
||||
@ -133,3 +133,20 @@ accuracy_score(y_pred,test_y)
|
||||
|
||||
print(classification_report(y_pred,test_y))
|
||||
# %%
|
||||
img_path = r"C:\Users\pittb\Documents\biedronkapp_2.0\BiedronkApp\biedronki_dataset\test\azjatyckie\78687-Biedronki-azjatyckie-Czy-sa-grozne-fot.-cocoparisienne---Pixabay.jpg"
|
||||
|
||||
img_nump = np.array(cv2.imread(img_path))
|
||||
img_nump = cv2.resize(img_nump,(224,224))
|
||||
img_nump = img_nump/255.0
|
||||
img_nump = img_nump[np.newaxis,...]
|
||||
|
||||
pr = model.predict(img_nump)
|
||||
print(pr)
|
||||
print(np.argmax(pr,axis=1))
|
||||
# %%
|
||||
# %%
|
||||
model.save('saved_model/my_model')
|
||||
|
||||
# %%
|
||||
|
||||
# %%
|
||||
|
44
biedronki_dataset/saved_model/my_model/keras_metadata.pb
Normal file
BIN
biedronki_dataset/saved_model/my_model/saved_model.pb
Normal file
BIN
biedronki_dataset/saved_model/my_model/variables/variables.index
Normal file
BIN
biedronki_dataset/test/azjatyckie/000AV7CGML62TYDW-C122-F4.jpg
Normal file
After Width: | Height: | Size: 111 KiB |
After Width: | Height: | Size: 143 KiB |
BIN
biedronki_dataset/test/azjatyckie/15218760_15218653.jpg
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
biedronki_dataset/test/azjatyckie/18116722224_60c6596b07_b.jpg
Normal file
After Width: | Height: | Size: 114 KiB |
After Width: | Height: | Size: 62 KiB |
BIN
biedronki_dataset/test/azjatyckie/3131.jpg
Normal file
After Width: | Height: | Size: 1.8 MiB |
BIN
biedronki_dataset/test/azjatyckie/3530.jpg
Normal file
After Width: | Height: | Size: 92 KiB |
BIN
biedronki_dataset/test/azjatyckie/49855792553_7efeaa9659_b.jpg
Normal file
After Width: | Height: | Size: 181 KiB |
BIN
biedronki_dataset/test/azjatyckie/5212.jpg
Normal file
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 111 KiB |
BIN
biedronki_dataset/test/azjatyckie/565154.jpg
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
biedronki_dataset/test/azjatyckie/5f9149ec83e43_o_large.jpg
Normal file
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 592 KiB |
BIN
biedronki_dataset/test/azjatyckie/8maya_22_ostr_19.jpg
Normal file
After Width: | Height: | Size: 144 KiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 71 KiB |
After Width: | Height: | Size: 518 KiB |
After Width: | Height: | Size: 165 KiB |
After Width: | Height: | Size: 77 KiB |
After Width: | Height: | Size: 176 KiB |
After Width: | Height: | Size: 218 KiB |
BIN
biedronki_dataset/test/azjatyckie/Harmonia-axyridis.jpg
Normal file
After Width: | Height: | Size: 563 KiB |
BIN
biedronki_dataset/test/azjatyckie/Harmonia.axyridis8b.jpg
Normal file
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 6.5 MiB |
After Width: | Height: | Size: 85 KiB |
BIN
biedronki_dataset/test/azjatyckie/Image2EY5large.jpg
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
biedronki_dataset/test/azjatyckie/asian-lady-beetle-500x500.jpg
Normal file
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 260 KiB |
After Width: | Height: | Size: 542 KiB |
After Width: | Height: | Size: 18 KiB |
BIN
biedronki_dataset/test/azjatyckie/harmonia-axyridis-1.jpg
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
biedronki_dataset/test/azjatyckie/harmonia-axyridis-2008_062.jpg
Normal file
After Width: | Height: | Size: 108 KiB |
After Width: | Height: | Size: 211 KiB |
After Width: | Height: | Size: 124 KiB |
After Width: | Height: | Size: 166 KiB |
BIN
biedronki_dataset/test/azjatyckie/harnax01.jpeg
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
biedronki_dataset/test/azjatyckie/images8955465656.jpg
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
biedronki_dataset/test/azjatyckie/imago2.jpg
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
biedronki_dataset/test/azjatyckie/indeks.jpg
Normal file
After Width: | Height: | Size: 9.8 KiB |
After Width: | Height: | Size: 37 KiB |
BIN
biedronki_dataset/test/azjatyckie/large.jpg
Normal file
After Width: | Height: | Size: 150 KiB |
After Width: | Height: | Size: 272 KiB |
After Width: | Height: | Size: 308 KiB |
After Width: | Height: | Size: 127 KiB |
After Width: | Height: | Size: 104 KiB |
BIN
biedronki_dataset/test/siedmiokropki/24a-7spot-ladybird.jpg
Normal file
After Width: | Height: | Size: 584 KiB |
BIN
biedronki_dataset/test/siedmiokropki/3303170.jpg
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
biedronki_dataset/test/siedmiokropki/3366.jpg
Normal file
After Width: | Height: | Size: 205 KiB |
BIN
biedronki_dataset/test/siedmiokropki/3367.jpg
Normal file
After Width: | Height: | Size: 187 KiB |
BIN
biedronki_dataset/test/siedmiokropki/3368.jpg
Normal file
After Width: | Height: | Size: 234 KiB |
BIN
biedronki_dataset/test/siedmiokropki/378515.fig.001.jpg
Normal file
After Width: | Height: | Size: 187 KiB |
After Width: | Height: | Size: 282 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 91 KiB |
BIN
biedronki_dataset/test/siedmiokropki/7-spot-ladybird-c-6449.JPG
Normal file
After Width: | Height: | Size: 532 KiB |
After Width: | Height: | Size: 224 KiB |
After Width: | Height: | Size: 99 KiB |
After Width: | Height: | Size: 363 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 1.1 MiB |
BIN
biedronki_dataset/test/siedmiokropki/7spot2.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 199 KiB |
After Width: | Height: | Size: 108 KiB |
After Width: | Height: | Size: 198 KiB |
BIN
biedronki_dataset/test/siedmiokropki/Ladybird.jpg
Normal file
After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 925 KiB After Width: | Height: | Size: 925 KiB |
BIN
biedronki_dataset/test/siedmiokropki/aDSCF1093k.jpg
Normal file
After Width: | Height: | Size: 121 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 476 KiB |
BIN
biedronki_dataset/test/siedmiokropki/biedronka-azjatycka.jpg
Normal file
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 31 KiB |
BIN
biedronki_dataset/test/siedmiokropki/dgwyjf38ezgyuigq7czp.jpg
Normal file
After Width: | Height: | Size: 236 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 21 KiB |
BIN
biedronki_dataset/test/siedmiokropki/ladybird-00001.jpg
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
biedronki_dataset/test/siedmiokropki/ladybird3.jpg
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
biedronki_dataset/test/siedmiokropki/ladybird7sp001.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
biedronki_dataset/test/siedmiokropki/ladybug-5279651_1280.jpg
Normal file
After Width: | Height: | Size: 192 KiB |
BIN
biedronki_dataset/test/siedmiokropki/ladybug-7-spttd17-3.jpg
Normal file
After Width: | Height: | Size: 120 KiB |
BIN
biedronki_dataset/test/siedmiokropki/ladybug-on-leaf.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
biedronki_dataset/test/siedmiokropki/ladybug-spirit-animal.jpg
Normal file
After Width: | Height: | Size: 105 KiB |
BIN
biedronki_dataset/test/siedmiokropki/large.jpg
Normal file
After Width: | Height: | Size: 178 KiB |
BIN
biedronki_dataset/test/siedmiokropki/large2.jpg
Normal file
After Width: | Height: | Size: 273 KiB |
After Width: | Height: | Size: 123 KiB |
After Width: | Height: | Size: 233 KiB |
BIN
biedronki_dataset/train/azjatyckie/000FVCM3DODQPAAL-C122-F4.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 83 KiB |
BIN
biedronki_dataset/train/azjatyckie/13509952_l.jpg
Normal file
After Width: | Height: | Size: 106 KiB |
After Width: | Height: | Size: 1.2 MiB |
BIN
biedronki_dataset/train/azjatyckie/15218760_15218653.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
biedronki_dataset/train/azjatyckie/1626258260.jpg
Normal file
After Width: | Height: | Size: 168 KiB |