midea-ai / aidget Goto Github PK
View Code? Open in Web Editor NEWAi edge toolbox,专门面向边端设备尤其是嵌入式RTOS平台,AI模型部署工具链,包括模型推理引擎和模型压缩工具
License: Apache License 2.0
Ai edge toolbox,专门面向边端设备尤其是嵌入式RTOS平台,AI模型部署工具链,包括模型推理引擎和模型压缩工具
License: Apache License 2.0
又继续学习Aidget模型压缩了
看了下剪枝的Markdown文件中给出的运行prune_training.py命令参数--weights '',意思是从零训练吧。
上次走通剪枝+蒸馏baseline是用的yolov7官方预训练模型进行剪枝训练,今天想按照Markdown里的weights ''命令参数从0剪枝训练发现会报错。
原因是prune_training.py line125加载了不存在的opt.weights路径,我把这行注释了反正是可以正常训练了也不知道对不对
model = torch.load(opt.weights, map_location=device)['model'].float().cuda()
ResRep_object = ResRep(copy.deepcopy(model))
model = ResRep_object.wrapped_model
还有就是我自己是single_gpu剪枝训练的,代码save的是EMA model,EMA策略会不会使剪枝失效啊?
我使用YOLOv7剪枝时遇到如下报错,具体位置在yolo.py中class Detect的forward函数里,这块是yolo原本就有的,各位大佬我该如何解决这个问题完成剪枝呢
Aidget\compressor\examples\pruning\YOLOv7\models\yolo.py:52: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if self.grid[i].shape[2:4] != x[i].shape[2:4]:
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.