การติดตั้ง•วิธีการใช้•แผ่น•การบริจาค•ใบอนุญาต
นี่คือไลบรารี Python ที่สร้าง MNIST เช่นชุดข้อมูลการฝึกอบรมสำหรับการจดจำข้อความที่เขียนด้วยลายมือการวิจัยที่เกี่ยวข้อง
ใช้ Package Manager Pip เพื่อติดตั้ง numiner
$ pip install numinerใช้ Package Manager PipenV เพื่อติดตั้ง numiner
$ pipenv install numinerใช้ Package Manager Poetry เพื่อติดตั้ง numiner
$ poetry add numiner โดยทั่วไปแพ็คเกจมีสองโหมดหลัก หนึ่งคือ sheet และอีกแผ่นหนึ่งคือ letter
sheet - ใช้เส้นทางที่เรียกว่า <source> ไปยังโฟลเดอร์ที่ถือภาพ แผ่น สแกนทั้งหมดหรือเส้นทางภาพจริงและบันทึกภาพที่ประมวลผลในเส้นทาง <result>
$ numiner -s/--sheet < source > < result > letter - ใช้เส้นทางที่เรียกว่า <source> ไปยังโฟลเดอร์ที่ถือภาพดิบที่ถูกครอบตัดหรือเส้นทางภาพจริงและบันทึกภาพที่ประมวลผลในเส้นทาง <result>
$ numiner -l/--letter < source > < result > นอกจากนี้คุณสามารถแทนที่ป้ายกำกับแผ่นเริ่มต้นโดยให้ไฟล์ json :
$ numiner --labels path/to/labels.json -s path/to/source path/to/resultแน่นอนว่าคุณสามารถทำได้:
$ numiner --help
usage: numiner [-h] [-v] [-s < source > < result > ] [-l < source > < result > ] [-c < path > ]
optional arguments:
-h, --help show this help message and exit
-v, --version show program ' s version number and exit
--clean <path>
-s/--sheet <source> <result> a path to a folder or file that ' s holding the < source >
sheet image(s) & a path to a folder where all < result >
images will be saved
-l/--letter < source > < result > a path to a folder or a file that ' s holding the cropped
image(s) & a path to a folder where all <result> images
will be saved
--labels <path> a path to .json file that ' s holding top to bottom, left
to right labels of the sheet with their ids$ numiner convert --help
usage: numiner convert [-h] -p < src > < dest > SIZE RATIO
positional arguments:
SIZE number of images that each class contains
RATIO test, train or percentage of the test data
in that case the rest of it will become
train data
optional arguments:
-h, --help show this help message and exit
-p < src > < dest > , --paths < src > < dest >
source and destination paths
นอกจากนี้คุณยังสามารถรับไฟล์แผ่นงานว่างได้จากที่นี่

ทำตามวิธีการเดียวกันกับที่ Emnist ใช้เมื่อพวกเขาสร้างชุดข้อมูลจากภาพ NIST SD เป็นครั้งแรก




ยินดีต้อนรับคำขอดึง สำหรับการเปลี่ยนแปลงครั้งใหญ่โปรดเปิดปัญหาก่อนเพื่อหารือเกี่ยวกับสิ่งที่คุณต้องการเปลี่ยนแปลง
โปรดตรวจสอบให้แน่ใจว่าได้อัปเดตการทดสอบตามความเหมาะสม
หากคุณต้องการอ่านเพิ่มเติมเกี่ยวกับวิธีการที่โครงการนี้มีชีวิตขึ้นมาคุณสามารถตรวจสอบรายงานวิทยานิพนธ์ของฉันได้
มิกซ์