-
Notifications
You must be signed in to change notification settings - Fork 16
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
predict.py error #1
Comments
I have changed it. So you can try again. Best wishes |
Running predict.py leads to an error: |
你可以把报错多放点上来,代码应该是没有问题的,是不是索引测试数据集的问题,都要resize成640X480,具体批量resize可以看我代码里的bigresize.py |
已经把图像resize成了640*480 在predict.py文件中 |
你的预训练模型放的路径位置对吗,不用跟我一模一样 |
如果报错的话,你可以把allim[0, 2, :] = heat_att这边注释,这个是注意力热图,注释了还是可以输出预测图的 |
您好 这个predict.py的测速集是必须和训练集一样有test-A test-B test-C三个数据集吗?我是想做一个推理,输进去一个图片,输出去阴影之后的图片,这个是用哪个py文件啊 |
不是的,只需要test-A一个就行了,里面是带有阴影的图片,就运行predict.py就行,路径填对,应该没问题 |
现在可以运行成功,但是好像没有效果啊,得到的结果还是有阴影。python predict.py --config ./config.yml --test_dir ./data/predict/ --out_dir ./out --pretrained ./results/000001/models/gen_model_epoch_160.pth --cuda 这些路经都没有问题 |
把图放上来看看呢 |
我建议你可以把图resize成256x256 |
刚刚尝试了把图片resize成256之后还是不行。感觉得到的结果和原始图像没有区别。这是为什么啊?下面是模型的进程,应该是没错误的吧 |
合理的 |
I am having the same untitled1 problem, where can I update to fix it? |
Running
predict.py
leads to an error:The text was updated successfully, but these errors were encountered: