fym202 / dataaugyolo Goto Github PK
View Code? Open in Web Editor NEW对YOLO格式的数据实现数据增强,减少标注的工作量
对YOLO格式的数据实现数据增强,减少标注的工作量
I found 2 error from your code.
I will let you know when I correct them.
我将
# random_bright
t_img, t_boxes = DAD.random_bright(img.clone()), boxes
save_Yolo(to_image(t_img), boxes, save_path, prefix="rb_", image_name=image_name)
改成了
# random_bright
t_img, t_boxes = DAD.random_bright(img.clone()), boxes
save_Yolo(to_image(t_img), boxes, save_path, suffix="_rb, image_name=image_name)
在save_YOLO函数里也改了
把
img.save(os.path.join(save_path, "images", prefix + image_name))
with open(os.path.join(save_path, "labels", prefix + image_name[0:len(image_name)-4] + ".txt"), 'w', encoding="utf-8") as f:
改成
img.save(os.path.join(save_path, "images", image_name + suffix))
with open(os.path.join(save_path, "labels", image_name[0:len(image_name)-4] + suffix + ".txt"), 'w', encoding="utf-8") as f:
但是运行的时候报错了
dealing: fbd02b4f1eac089a9af1a9e0a24e888e3226d6bc.jpg
ERROR: fbd02b4f1eac089a9af1a9e0a24e888e3226d6bc.jpg is bad.
ERROR: fbd02b4f1eac089a9af1a9e0a24e888e3226d6bc.jpg is bad.
ERROR: fbd02b4f1eac089a9af1a9e0a24e888e3226d6bc.jpg is bad.
ERROR: fbd02b4f1eac089a9af1a9e0a24e888e3226d6bc.jpg is bad.
ERROR: fbd02b4f1eac089a9af1a9e0a24e888e3226d6bc.jpg is bad.
ERROR: fbd02b4f1eac089a9af1a9e0a24e888e3226d6bc.jpg is bad.
end: fbd02b4f1eac089a9af1a9e0a24e888e3226d6bc.jpg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.