-
-
刘看山
你好,这里面所有关于seg有关的都是语义分割的类别,而thing是实例类别。也就是检测里面的类别。
而语义是不区分实例的,在coco里面实例类别是80类,而语义是54类。
如果需要修改就需要修改成你的类别数,加入你的数据存放格式和coco一样,那么这些就只要修改数字即可,如果不是,你得实现自己的dataloader。 -
刘看山
什么是TensorRT OSS? 你可以理解为tensorrt的lib是你从官网下载的, 这个oss是英伟达开源的那一部分. 等于是一个tensorrt的扩展.
因为tensorrt核心库是不开源的, 但是一些扩展被开元出来了. 这个oss有什么用呢?简单来说, 就是开源的plugin, 给你一些现成的plugin用的.
我们可以这样编译tensorrt oss:
git clone https://github.com/NVIDIA/TensorRT cd TensorRT cmake .. -DTRT_LIB_DIR=~/TensorRT/lib -DTRT_OUT_DIR=`pwd`/out
编译完之后, 会自动覆盖掉你下载的tensorrt lib, 并且会生成与一个libonnx_parser_plugin, 供你调用.
据我所致, 一些基本的plugin,需要oss, 比如InstanceSegmentation plugin等.
-
-
刘看山
这个是必然的,相信很多人都试过,在训练模型的时候去跑推理,会慢的不行。
这是英伟达内部的多模型伪并行决定的,你没有办法去解决。目前来看,可能的办法分为两种,但是代价都比较高:
- A100 这样的带有vGPU支持的卡;
- 整合到一个模型中,做多任务
-
刘看山
记录一个macos下安装
gem install cocopods
遇到的错误:
fatal error: 'ruby/config.h' file not found #include "ruby/config.h"
一大穿吃的错误是这样的:
Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/ext/ffi_c /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20200919-99764-16pqwro.rb extconf.rb /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin19/rbconfig.rb:229: warning: Insecure world writable dir /usr/local/sbin in PATH, mode 040777 *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/$(RUBY_BASE_NAME) --with-ffi_c-dir --without-ffi_c-dir --with-ffi_c-include --without-ffi_c-include=${ffi_c-dir}/include --with-ffi_c-lib --without-ffi_c-lib=${ffi_c-dir}/lib --enable-system-libffi --disable-system-libffi --with-libffi-config --without-libffi-config --with-pkg-config --without-pkg-config /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:467:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:546:in `block in try_link0' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tmpdir.rb:93:in `mktmpdir' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:543:in `try_link0' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:570:in `try_link' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:672:in `try_ldflags' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1832:in `pkg_config' from extconf.rb:9:in `system_libffi_usable?' from extconf.rb:42:in `<main>' To see why this extension failed to compile, please check the mkmf.log which can be found here: /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/ffi-1.13.1/mkmf.log extconf failed, exit code 1
这个错误引起的根本原因是,gcc的版本过低!!!!
运行这个:
gcc -v sudo xcode-select -s /Library/Developer/CommandLineTools/ gcc -v
你会发现,前后两个gcc的版本不同,换了最新的之后就可以了。。
-
刘看山
链接:https://pan.baidu.com/s/1oTjGjcrHtOOvtDoPC4RBNg
提取码:un4f
复制这段内容后打开百度网盘手机App,操作更方便哦链接:https://pan.baidu.com/s/1_jQXQ3lR58uWV1t4P1_hQQ
提取码:53ih