-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unable to reproduce the data in the paper #1
Comments
Thanks for your attention to our work! We tested our latest code and found that it was able to train correctly as follows. Perhaps you need to check that the code you clone is up to date, or that some modifications of the code may affect the output of the model. If you can provide more information, we may be able to better localize the problem. |
您好,我们认为问题可能是在您第二张截图的158行上,因为encoder实际上只输出了RGB的feature送入decoder,因此不需要再手动地将encoder的输出拆开了,因此我们建议将158行修改回 从encoder的代码可以看出输出只包含RGB的feature: DFormer-SOD/Code/models/encoders/DFormer.py Lines 282 to 295 in ef25da0
当前仓库最新版代码经过我们的测试,发现能够正常训练与测试,因此如果上述还未解决您的问题,我们建议您与当前仓库最新版的代码进行对比,确保 |
好了,我现在换成最新的代码可以直接运行了,但还是没法得到论文的结果,我直接从网盘下载Dformer_large_sod.pth文件,然后运行test_produce_map.py让模型加载这个权重,这么做不对吗 |
你好,在运行完 如果您运行 |
您好,我们重新测试了一遍仓库的最新版代码,完整步骤包括:
python test_produce_maps.py
python test_evaluation_maps.py 关于您提出的效果不佳,我们认为首先需要确保所有代码与当前仓库一致,且确保测试时使用的pth文件为网盘中下载的pth。此外,还有可能是环境不一致导致的复现问题,您可以与 |
File ".../DFormer-SOD/Code/models/decoders/decode_head.py", line 177, in
inputs = [inputs[i] for i in self.in_index]
IndexError: tuple index out of range
I'm # trying to run the code for DFormer-SOD using the large architecture, but I get this error, Dformer's backbone seems to output two sets of four-level features, while the decoder only receives a single set of four-level features, so I'm only taking the first set of features as the input to the decoder, so please tell me how I can modify it to reproduce the The data is in the paper
The text was updated successfully, but these errors were encountered: