Skip to content

Instantly share code, notes, and snippets.

View jellytech3438's full-sized avatar

JellyFish jellytech3438

View GitHub Profile
@jellytech3438
jellytech3438 / tpl_recv.c
Last active September 30, 2022 04:11
self practice for tpl serialize data in c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "tpl.c"
#define MAXNAME 1024
typedef struct linkedlist{
char name[MAXNAME];
# 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'
# directly add grabcut dataset
%cd /content/drive/MyDrive/2022--flower_classification/Unsorted_dataset
label = pandas.read_csv('label.csv')
%cd ../
import os
import shutil
%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,
#include <stdio.h>
/*
site : https://segmentfault.com/a/1190000039310334
10
1 5 8 9 10 17 17 20 24 30
4