Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用inf跑deeplabv3+mobilnetv2报错 #177

Closed
y-kl8 opened this issue Mar 5, 2020 · 4 comments
Closed

使用inf跑deeplabv3+mobilnetv2报错 #177

y-kl8 opened this issue Mar 5, 2020 · 4 comments
Assignees
Labels
slim Issues of model compression

Comments

@y-kl8
Copy link

y-kl8 commented Mar 5, 2020

使用量化后的deeplabv3+mobilnetv2_cityscapes模型,出现如下报错:

Traceback (most recent call last):
File "infer.py", line 321, in
run(gflags.FLAGS.conf, gflags.FLAGS.input_dir, gflags.FLAGS.ext)
File "infer.py", line 303, in run
seg_predictor.predict(imgs)
File "infer.py", line 278, in predict
self.output_result(img_datas, output_data, gflags.FLAGS.use_pr)
File "infer.py", line 228, in output_result
score_png[i, j] = color_map[score_png[i, j, 0]]
IndexError: list index out of range

@slf12
Copy link
Contributor

slf12 commented Mar 6, 2020

使用量化后的deeplabv3+mobilnetv2_cityscapes模型,出现如下报错:

Traceback (most recent call last):
File "infer.py", line 321, in
run(gflags.FLAGS.conf, gflags.FLAGS.input_dir, gflags.FLAGS.ext)
File "infer.py", line 303, in run
seg_predictor.predict(imgs)
File "infer.py", line 278, in predict
self.output_result(img_datas, output_data, gflags.FLAGS.use_pr)
File "infer.py", line 228, in output_result
score_png[i, j] = color_map[score_png[i, j, 0]]
IndexError: list index out of range

麻烦说下使用的分支和评估文件的路径

@ZeyuChen ZeyuChen added the slim Issues of model compression label Mar 7, 2020
@ShaoCorn
Copy link

ShaoCorn commented Mar 7, 2020

使用deploy/python/infer.py,并使用该页面提供的模型时,使用cpu推理可有正常结果,使用GPU时报错。

err01
err02

err03

@slf12
Copy link
Contributor

slf12 commented Mar 7, 2020

使用deploy/python/infer.py,并使用该页面提供的模型时,使用cpu推理可有正常结果,使用GPU时报错。

int8量化模型在GPU上进行推理走的是tensorrt模式,tensorrt支持的硬件有限,麻烦发一下您的GPU型号看下是否支持。

@nepeplwu
Copy link
Collaborator

nepeplwu commented Sep 7, 2020

此issue在最近三个月内暂无更新,我们将关闭该问题。如有需要,请重新打开该issue。

@nepeplwu nepeplwu closed this as completed Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
slim Issues of model compression
Projects
None yet
Development

No branches or pull requests

5 participants