Git Product home page Git Product logo

Comments (18)

lindsayshuo avatar lindsayshuo commented on July 22, 2024 1

已经提交修复

from tensorrtx.

wang-xinyu avatar wang-xinyu commented on July 22, 2024

@lindsayshuo pls advice

from tensorrtx.

lindsayshuo avatar lindsayshuo commented on July 22, 2024

Env

  • GPU, RTX3060
  • OS, Ubuntu 20.04.4 LTS
  • Cuda version,12.2
  • TensorRT version, 8.2.5.1

About this repo

  • which branch/tag/commit are you using?
    master
  • which model?
    yolov8-seg

Your problem

warm_up->(640, 640, 3), time->4.74ms
warm_up->(640, 640, 3), time->3.88ms
yolov8_seg_trt.py:401: RuntimeWarning: overflow encountered in exp
return 1 / (1 + np.exp(-x))
result_boxes[j]:[ 0. 0. 1391.6953 713.90625]
result_classid[j]:399.013671875
Exception in thread Thread-21:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "yolov8_seg_trt.py", line 483, in run
batch_image_raw, use_time = self.yolov8_wrapper.infer(self.yolov8_wrapper.get_raw_image(self.image_path_batch))
File "yolov8_seg_trt.py", line 201, in infer
categories[int(result_classid[j])], result_scores[j]
IndexError: list index out of range

  • what is your command?
    python3 yolov8_seg_trt.py
  • what's your output?

image

  • what output do you expect?
    box and mask

是不是官方模型,我看是索引超了

from tensorrtx.

TianLuluC avatar TianLuluC commented on July 22, 2024

Env

  • GPU, RTX3060
  • OS, Ubuntu 20.04.4 LTS
  • Cuda version,12.2
  • TensorRT version, 8.2.5.1

About this repo

  • which branch/tag/commit are you using?
    master
  • which model?
    yolov8-seg

Your problem

warm_up->(640, 640, 3), time->4.74ms
warm_up->(640, 640, 3), time->3.88ms
yolov8_seg_trt.py:401: RuntimeWarning: overflow encountered in exp
return 1 / (1 + np.exp(-x))
result_boxes[j]:[ 0. 0. 1391.6953 713.90625]
result_classid[j]:399.013671875
Exception in thread Thread-21:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "yolov8_seg_trt.py", line 483, in run
batch_image_raw, use_time = self.yolov8_wrapper.infer(self.yolov8_wrapper.get_raw_image(self.image_path_batch))
File "yolov8_seg_trt.py", line 201, in infer
categories[int(result_classid[j])], result_scores[j]
IndexError: list index out of range

  • what is your command?
    python3 yolov8_seg_trt.py
  • what's your output?

image

  • what output do you expect?
    box and mask

是不是官方模型,我看是索引超了

不是,custom dataset, yolov8 训练的自定义模型,3类
class_id 输出是比较大浮点数

from tensorrtx.

lindsayshuo avatar lindsayshuo commented on July 22, 2024

Env

  • GPU, RTX3060
  • OS, Ubuntu 20.04.4 LTS
  • Cuda version,12.2
  • TensorRT version, 8.2.5.1

About this repo

  • which branch/tag/commit are you using?
    master
  • which model?
    yolov8-seg

Your problem

warm_up->(640, 640, 3), time->4.74ms
warm_up->(640, 640, 3), time->3.88ms
yolov8_seg_trt.py:401: RuntimeWarning: overflow encountered in exp
return 1 / (1 + np.exp(-x))
result_boxes[j]:[ 0. 0. 1391.6953 713.90625]
result_classid[j]:399.013671875
Exception in thread Thread-21:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "yolov8_seg_trt.py", line 483, in run
batch_image_raw, use_time = self.yolov8_wrapper.infer(self.yolov8_wrapper.get_raw_image(self.image_path_batch))
File "yolov8_seg_trt.py", line 201, in infer
categories[int(result_classid[j])], result_scores[j]
IndexError: list index out of range

  • what is your command?
    python3 yolov8_seg_trt.py
  • what's your output?

image

  • what output do you expect?
    box and mask

是不是官方模型,我看是索引超了

不是,custom dataset, yolov8 训练的自定义模型,3类

是用最新代码的wts导出的吗

from tensorrtx.

TianLuluC avatar TianLuluC commented on July 22, 2024

Env

  • GPU, RTX3060
  • OS, Ubuntu 20.04.4 LTS
  • Cuda version,12.2
  • TensorRT version, 8.2.5.1

About this repo

  • which branch/tag/commit are you using?
    master
  • which model?
    yolov8-seg

Your problem

warm_up->(640, 640, 3), time->4.74ms
warm_up->(640, 640, 3), time->3.88ms
yolov8_seg_trt.py:401: RuntimeWarning: overflow encountered in exp
return 1 / (1 + np.exp(-x))
result_boxes[j]:[ 0. 0. 1391.6953 713.90625]
result_classid[j]:399.013671875
Exception in thread Thread-21:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "yolov8_seg_trt.py", line 483, in run
batch_image_raw, use_time = self.yolov8_wrapper.infer(self.yolov8_wrapper.get_raw_image(self.image_path_batch))
File "yolov8_seg_trt.py", line 201, in infer
categories[int(result_classid[j])], result_scores[j]
IndexError: list index out of range

  • what is your command?
    python3 yolov8_seg_trt.py
  • what's your output?

image

  • what output do you expect?
    box and mask

是不是官方模型,我看是索引超了

不是,custom dataset, yolov8 训练的自定义模型,3类

是用最新代码的wts导出的吗

是的,master, 刚pull的

from tensorrtx.

lindsayshuo avatar lindsayshuo commented on July 22, 2024

Env

  • GPU, RTX3060
  • OS, Ubuntu 20.04.4 LTS
  • Cuda version,12.2
  • TensorRT version, 8.2.5.1

About this repo

  • which branch/tag/commit are you using?
    master
  • which model?
    yolov8-seg

Your problem

warm_up->(640, 640, 3), time->4.74ms
warm_up->(640, 640, 3), time->3.88ms
yolov8_seg_trt.py:401: RuntimeWarning: overflow encountered in exp
return 1 / (1 + np.exp(-x))
result_boxes[j]:[ 0. 0. 1391.6953 713.90625]
result_classid[j]:399.013671875
Exception in thread Thread-21:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "yolov8_seg_trt.py", line 483, in run
batch_image_raw, use_time = self.yolov8_wrapper.infer(self.yolov8_wrapper.get_raw_image(self.image_path_batch))
File "yolov8_seg_trt.py", line 201, in infer
categories[int(result_classid[j])], result_scores[j]
IndexError: list index out of range

  • what is your command?
    python3 yolov8_seg_trt.py
  • what's your output?

image

  • what output do you expect?
    box and mask

是不是官方模型,我看是索引超了

不是,custom dataset, yolov8 训练的自定义模型,3类

是用最新代码的wts导出的吗

是的,master, 刚pull的

你用c++试了吗

from tensorrtx.

TianLuluC avatar TianLuluC commented on July 22, 2024

Env

  • GPU, RTX3060
  • OS, Ubuntu 20.04.4 LTS
  • Cuda version,12.2
  • TensorRT version, 8.2.5.1

About this repo

  • which branch/tag/commit are you using?
    master
  • which model?
    yolov8-seg

Your problem

warm_up->(640, 640, 3), time->4.74ms
warm_up->(640, 640, 3), time->3.88ms
yolov8_seg_trt.py:401: RuntimeWarning: overflow encountered in exp
return 1 / (1 + np.exp(-x))
result_boxes[j]:[ 0. 0. 1391.6953 713.90625]
result_classid[j]:399.013671875
Exception in thread Thread-21:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "yolov8_seg_trt.py", line 483, in run
batch_image_raw, use_time = self.yolov8_wrapper.infer(self.yolov8_wrapper.get_raw_image(self.image_path_batch))
File "yolov8_seg_trt.py", line 201, in infer
categories[int(result_classid[j])], result_scores[j]
IndexError: list index out of range

  • what is your command?
    python3 yolov8_seg_trt.py
  • what's your output?

image

  • what output do you expect?
    box and mask

是不是官方模型,我看是索引超了

不是,custom dataset, yolov8 训练的自定义模型,3类

是用最新代码的wts导出的吗

是的,master, 刚pull的

你用c++试了吗

没有,只用了python

from tensorrtx.

lindsayshuo avatar lindsayshuo commented on July 22, 2024

Env

  • GPU, RTX3060
  • OS, Ubuntu 20.04.4 LTS
  • Cuda version,12.2
  • TensorRT version, 8.2.5.1

About this repo

  • which branch/tag/commit are you using?
    master
  • which model?
    yolov8-seg

Your problem

warm_up->(640, 640, 3), time->4.74ms
warm_up->(640, 640, 3), time->3.88ms
yolov8_seg_trt.py:401: RuntimeWarning: overflow encountered in exp
return 1 / (1 + np.exp(-x))
result_boxes[j]:[ 0. 0. 1391.6953 713.90625]
result_classid[j]:399.013671875
Exception in thread Thread-21:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "yolov8_seg_trt.py", line 483, in run
batch_image_raw, use_time = self.yolov8_wrapper.infer(self.yolov8_wrapper.get_raw_image(self.image_path_batch))
File "yolov8_seg_trt.py", line 201, in infer
categories[int(result_classid[j])], result_scores[j]
IndexError: list index out of range

  • what is your command?
    python3 yolov8_seg_trt.py
  • what's your output?

image

  • what output do you expect?
    box and mask

是不是官方模型,我看是索引超了

不是,custom dataset, yolov8 训练的自定义模型,3类

是用最新代码的wts导出的吗

是的,master, 刚pull的

你用c++试了吗

没有,只用了python

可以把j打出来看看

from tensorrtx.

TianLuluC avatar TianLuluC commented on July 22, 2024

@lindsayshuo
image

from tensorrtx.

lindsayshuo avatar lindsayshuo commented on July 22, 2024

@lindsayshuo image

output[i * 38001: (i + 1) * 38001] 看看这个是不是空

from tensorrtx.

TianLuluC avatar TianLuluC commented on July 22, 2024

@lindsayshuo
image
不为空

from tensorrtx.

lindsayshuo avatar lindsayshuo commented on July 22, 2024

@lindsayshuo image 不为空

result_boxes, result_scores, result_classid,result_proto_coef 这几个打印下

from tensorrtx.

TianLuluC avatar TianLuluC commented on July 22, 2024

@lindsayshuo
image

from tensorrtx.

lindsayshuo avatar lindsayshuo commented on July 22, 2024

@lindsayshuo image

打印int(result_classid[j])]这个呢

from tensorrtx.

TianLuluC avatar TianLuluC commented on July 22, 2024

@lindsayshuo
image
model有3类,值应该为 <3

from tensorrtx.

lindsayshuo avatar lindsayshuo commented on July 22, 2024

#1526

from tensorrtx.

TianLuluC avatar TianLuluC commented on July 22, 2024

@lindsayshuo @wang-xinyu 谢谢!

from tensorrtx.

Related Issues (20)

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.