Git Product home page Git Product logo

tensorrtcv's People

Contributors

baofengzan avatar vaew avatar wdhao avatar zhaoxiaolong2020 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tensorrtcv's Issues

执行getweight.py这个脚本处理yolov5s.pt的时候报错 No module named 'models'?

我执行getweight.py脚本的时候报错, 只保存为.pth

if __name__ == '__main__':

    #!将yolo5s.pt文件保存为yolov5s.pth文件
    model = torch.load(path + 'yolov5s.pt')['model'].float()
    torch.save(model.state_dict(), path + 'yolov5s.pth')  #只保存模型权重参数,不保存模型结构

报错如下

(py38torch190-smoke) zxl@R9000P:~/mywork/tensorrtCV$ python getWeights_new.py
Traceback (most recent call last):
  File "getWeights_new.py", line 67, in <module>
    model = torch.load(path + 'yolov5s.pt')['model'].float()
  File "/home/zxl/miniconda3/envs/py38torch190-smoke/lib/python3.8/site-packages/torch/serialization.py", line 607, in load
    return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
  File "/home/zxl/miniconda3/envs/py38torch190-smoke/lib/python3.8/site-packages/torch/serialization.py", line 882, in _load
    result = unpickler.load()
  File "/home/zxl/miniconda3/envs/py38torch190-smoke/lib/python3.8/site-packages/torch/serialization.py", line 875, in find_class
    return super().find_class(mod_name, name)
ModuleNotFoundError: No module named 'models'

这是什么原因呢? 我把下载下来的yolov5s.pt放在了model文件夹下,脚本的路径也对应修改了。

in ubuntu18.04 ,after change the trt path in cmakelist, then make, it has error

home//tensorrtCV/calibrator.cpp:125:61: error: expected primary-expression before ‘char’
copy(istream_iterator(input),istream_iterator(),back_inserter(m_CalibrationCache));
^~~~
CMakeFiles/tensorrtF.dir/build.make:108: recipe for target 'CMakeFiles/tensorrtF.dir/calibrator.cpp.o' failed
make[2]: *** [CMakeFiles/tensorrtF.dir/calibrator.cpp.o] Error 1
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/tensorrtF.dir/all' failed
make[1]: *** [CMakeFiles/tensorrtF.dir/all] Error 2
Makefile:103: recipe for target 'all' failed
make: *** [all] Error 2

tks

多个输出怎么修改呢?

cudaMemcpyAsync(output,m_bindings.at(outputIndex),batchsize * param.outputSize * 4, cudaMemcpyDeviceToHost,m_cudaStream)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.