fu123456 / SHIQ

Project for CVPR21 paper: "A Multi-Task Network for Joint Specular Highlight Detection and Removal".
85 stars 16 forks source link

开源代码是否缺少文件,谢谢 #3

Closed QQiangren closed 2 years ago

QQiangren commented 2 years ago

您好,我下载模型后用infer.py代码测试, 代码内: from utils.detectionRemoval import test_single_highlight_image 工程内未找到detectionRemoval 文件,只有detectionRemoval.cpython-36m-x86_64-linux-gnu.so文件, 是工程缺少文件,还是本人使用错误。 感谢指导

fu123456 commented 2 years ago

是可以测试的。对应的函数已经生成动态库在.so文件中。 你按照说明看看是不是可以测试。

QQiangren commented 2 years ago

我运行 ./test.sh 会报ModuleNotFoundError: No module named 'utils.detectionRemoval' 的错误

1111

QQiangren commented 2 years ago

我调用了so文件,但是so文件内显示没有test_single_highlight_image 这个方法。

ccc

fu123456 commented 2 years ago

我这边是一切正常的,其他人用的也正常运行。你可以把你的环境详细说下吗?

QQiangren commented 2 years ago

您好: 我的运行环境是: ubuntu 18.04 cuda 10.2 python 3.7.11 opencv 4.5.4.60 torch 1.10.0 Pillow 8.4.0

fu123456 commented 2 years ago

这个暂时看不出来是什么问题。这个应该没有正确加载对应的库文件。 你这个是在本地跑的还是通过终端链接到服务器跑得?

QQiangren commented 2 years ago

我是在本地运行的,方便看一下你的工程目录结构吗?谢谢,我的目录是这样的。 捕获

fu123456 commented 2 years ago

这个目录是完全没有问题的。我这边测试确实每发现该问题。 你在看看如何确保正确加载对应的库文件。

wangyunlhr commented 2 years ago

我运行 ./test.sh 会报ModuleNotFoundError: No module named 'utils.detectionRemoval' 的错误

1111

请问您解决这个问题了吗,我也遇到同样的问题

fu123456 commented 2 years ago

I have realized that some peoples have this problem. Please wait. I will update the code later to fix the bug. Thanks.

wangyunlhr commented 2 years ago

thank you

indam commented 2 years ago

I have realized that some peoples have this problem. Please wait. I will update the code later to fix the bug. Thanks.

请问现在怎么样了?

ckfh commented 2 years ago

image 楼主给的环境是不是不对啊,我用python3.7跑就读取不到模块,现在改了3.6跑显示如图错误,emo了

ckfh commented 2 years ago

图片 给的环境是不对啊,我显示python3.7跑就读取不到楼主的模块,现在改了3.6跑图错误,emo了

改成python3.6 torch1.5 测试成功

fu123456 commented 2 years ago

你那边现在可以测试成功吗?我这边在本地一直都可以。

ckfh commented 2 years ago

能,就把环境换成python3.6 和pytorch1.5,pytorch1.10运行会报错,python3.7以上会调用不到模块,貌似要严格按照你编译时候的环境跑

fu123456 commented 2 years ago

@indam @QQiangren @wangyunlhr @ckfh 我已经更新了README文件,说明了这个问题。需要安装正确的python和pytorch版本才能正确测试。

I have updated the README file to illustrate this issue. We should need to install Python and PyTorch with correct versions to successfully test.

wangyunlhr commented 2 years ago

确实这样能正常运行了,超级感谢!

QQiangren commented 2 years ago

按照指定版本已经可以推理,谢谢

JacobYeah commented 2 years ago

请问下,我的环境配置完成,但是提示RuntimeError,我是在虚拟机上进行运行。 屏幕截图 2022-02-09 172425