This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include "tpl.c" | |
| #define MAXNAME 1024 | |
| typedef struct linkedlist{ | |
| char name[MAXNAME]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # class_names = train_ds.class_names | |
| label = pandas.read_csv('submission_template.csv') | |
| reconstructed_model = keras.models.load_model("resnet50-withgc-50.h5") | |
| # reconstructed_model = keras.models.load_model("resnet50-withgc-hdldata-addresblock-50.h5") | |
| # csv data | |
| rows = [{ | |
| 'filename': 'filename', | |
| 'category': 'category' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # directly add grabcut dataset | |
| %cd /content/drive/MyDrive/2022--flower_classification/Unsorted_dataset | |
| label = pandas.read_csv('label.csv') | |
| %cd ../ | |
| import os | |
| import shutil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %cd /content/drive/MyDrive/2022--flower_classification/ | |
| NUM_CLASSES = 219 | |
| batch_size = 32 | |
| img_height = 480 | |
| img_width = 480 | |
| train_ds = tf.keras.utils.image_dataset_from_directory( | |
| 'GrabCutFlowerImages', | |
| validation_split=0.2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| /* | |
| site : https://segmentfault.com/a/1190000039310334 | |
| 10 | |
| 1 5 8 9 10 17 17 20 24 30 | |
| 4 |