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

predict.py is not running & Cannot access to pre-trained models. #2

Open
ken-GenGenAI opened this issue Jun 30, 2022 · 10 comments
Open
Labels
good first issue Good for newcomers

Comments

@ken-GenGenAI
Copy link

First of all thanks for your great work.

I`m interested in shadow removal and found your repository.
I have problem with run this code.

1.https://github.com/zhangbaijin/SpA-Former-shadow-removal/blob/main/pretrained_models/RICE1 Cannot access
2. Download gen_model_epoch160.pth in https://drive.google.com/drive/folders/1pxwwAfwnGKkLj-GAlkVCevbEQM4basgR and
run with this parameter error occured at gen.load_state_dict.
image
I think model was deprecated *.pth
Could you upload lastest pre-trained model or if i have mistake could you guide my fault??

@zhangbaijin
Copy link
Owner

  1. The pretrained model RICE1 is seems to gone. I will update it later.
  2. It seems that my network missing something, maybe i put the wrong code on it. I will check it, and can you try it after 10 minutes ?

@ken-GenGenAI
Copy link
Author

@zhangbaijin Thanks for your effort.
one need to delete this line in SpA_former.py
from Dual_conv import PaddingConv2d

and run this code thank you

@zhangbaijin
Copy link
Owner

Thanks for your kind remind. Best wishes

@zhangbaijin zhangbaijin added the good first issue Good for newcomers label Jul 20, 2022
@zhangbaijin zhangbaijin reopened this Jul 30, 2022
@yjdqk
Copy link

yjdqk commented Aug 5, 2022

I access the same problem,but can't solve it

@zhangbaijin
Copy link
Owner

什么问题

@yjdqk
Copy link

yjdqk commented Aug 5, 2022

这行代码from Dual_conv import PaddingConv2d 已经从源码中删除了,运行时,还会报相同的问题。

1 similar comment
@yjdqk
Copy link

yjdqk commented Aug 5, 2022

这行代码from Dual_conv import PaddingConv2d 已经从源码中删除了,运行时,还会报相同的问题。

@yjdqk
Copy link

yjdqk commented Aug 5, 2022

errors in loading state_dict for Generator

@zhangbaijin
Copy link
Owner

你可以重新下载整个项目进行测试,代码错误应该是预训练模型没加载对

@wangchenxixixi
Copy link

ssim = SSIM(img1,img2)

File "/usr/local/lib/python3.8/dist-packages/skimage/metrics/_structural_similarity.py", line 194, in structural_similarity
raise ValueError(
ValueError: Since image dtype is floating point, you must specify the data_range parameter. Please read the documentation carefully (including the note). It is recommended that you always specify the data_range anyway. 作者您好 我用SSIM这个缺少一个data_range参数 按照您给的640 480 像素 这个参数值应该是写多少呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants