-
Notifications
You must be signed in to change notification settings - Fork 256
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
demo测试出错 #139
Comments
你好,我最近在实现你的工程,首先对于之前的问题我是修改了配置文件得到的解决,我想要去训练模型,但是在图像剪裁中出现了问题:par_crop.py程序运行成功但是未能生成图像对,生成的是空文件夹。
我做了以下工作:(1)由于数据量很大,刚开始我只取了val数据集下的前108组作为训练集其中36组作为验证集,train中数据按照GOT10K/train/GOT-10k_Train_000001到GOT-10k_Train_000108命名,val类似(2)在GOT10K同目录下的par_crop.py中修改路径got10k_base_path这里写的是原始GOT10K的路径,然后运行:由于par_crop.py中的main需要在终端手动输入两个参数,我尝试了在终端输入python par_crop.py 511 2(这个我试过好几个),也尝试了将if __main__中直接给指令main(511,1)
这是我运行的结果,我想我运行起来并没有任何问题
结果只生成了下面那种图形式
随后我想可能数据集比较小,我尝试了将原来的Train数据集中的前1000组数据进行剪裁,在此之前我也首先运行了parser_got10k.py生成了json文件,然后在运行这个.py文件时发现出现了问题,我不知道是哪里出现了错误,想请教一下,谢谢!!
!
***@***.***
…------------------ 原始邮件 ------------------
发件人: "HonglinChu/SiamTrackers" ***@***.***>;
发送时间: 2023年12月7日(星期四) 中午1:02
***@***.***>;
***@***.******@***.***>;
主题: Re: [HonglinChu/SiamTrackers] demo测试出错 (Issue #139)
把这里的snapshot设置成绝对路径试试, 在终端cd xxx/xxx/NanoTrack 目录,然后在命令行运行脚本
image.png (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
想请教一下我一开始就直接跑的demo.py程序,但是它报了这个错误Traceback (most recent call last):
File "E:\Tools_project\python_project\DL\code\SiamTrackers-master\NanoTrack\bin\demo.py", line 144, in
main()
File "E:\Tools_project\python_project\DL\code\SiamTrackers-master\NanoTrack\bin\demo.py", line 83, in main
model = load_pretrain(model, args.snapshot).cuda().eval()
File "E:\Tools_project\python_project\DL\code\SiamTrackers-master\NanoTrack\nanotrack\utils\model_load.py", line 70, in load_pretrain
check_keys(model, pretrained_dict)
File "E:\Tools_project\python_project\DL\code\SiamTrackers-master\NanoTrack\nanotrack\utils\model_load.py", line 32, in check_keys
assert len(used_pretrained_keys) > 0,
AssertionError: load NONE from pretrained checkpoint,可是这个权重的文件不是已经存在了吗?
The text was updated successfully, but these errors were encountered: