Dataset contains 6 Grow rubbish , They are cardboard( carton ),glass( Glass ),metal( Metal ),paper( paper ),plastic( Plastic ), Other waste products (trash), The amount of data is small , Learning only .

Data set preparation , The data set is divided into training set and test set , Make label file . code utils.py
import os import shutil import json
path="e://dataset//Garbage_classification"# This path is the directory of the six categories in the figure above , It can be modified according to its own data set path
classes=[garbage for garbage in os.listdir(path)] if
os.path.exists(os.path.join(os.getcwd(),'train'))==False:
os.makedirs(os.path.join(os.getcwd(),'train')) if
os.path.exists(os.path.join(os.getcwd(),'val'))==False:
os.makedirs(os.path.join(os.getcwd(),'val')) f = open("garbage_train.json",
'w') g = open("garbage_val.json", 'w') for garbage in classes: s = 0 for
imgname in os.listdir(os.path.join(path,garbage)):

Technology
©2020 ioDraw All rights reserved
python gui Interface examples -Python GUI Programming complete example IO flow —— Classification of flow ,InputStream,OutputStream,Reader,Writer etc. Thread.setDaemon Set up the Daemons STM32 RS485 modbus Communication source program , The test is effective stay MATLAB 2018 Time series prediction with deep learning vue3 Write component library and publish to npm The process of Questions and answers for the interviewer : How did you get a project in the project team ??? In the applet form Multiple cycles input How to get each input Value of 2021 Front end high frequency interview questions ( You have to watch it !!!)js Array method