Open zqx951102 opened 3 years ago
运行main这个文件时候,报错,有没有出现同样问题的小伙伴啊 咋解决的
我也是同样的报错
请问 你知道咋解决的吗 我到现在也是不知道咋搞了
------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:08 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25)
我也是同样的报错
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
没有呢,困扰了好多天了,网上说是全局变量的问题,改完之后还是报错。
------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:11 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25)
请问 你知道咋解决的吗 我到现在也是不知道咋搞了
------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:08 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25)
我也是同样的报错
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
zqx951102 微信 加一下 兄弟 有空继续探讨 我先准备下周组会,加一下
------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:13 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25)
没有呢,困扰了好多天了,网上说是全局变量的问题,改完之后还是报错。
------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:11 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25)
请问 你知道咋解决的吗 我到现在也是不知道咋搞了
------------------ 原始邮件 ------------------
发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>;
发送时间: 2021年10月16日(星期六) 中午11:08
@.>;
@.**@.>;
主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25)
我也是同样的报错
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
Ok
------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:14 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25)
zqx951102 微信 加一下 兄弟 有空继续探讨 我先准备下周组会,加一下
------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:13 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25)
没有呢,困扰了好多天了,网上说是全局变量的问题,改完之后还是报错。
------------------ 原始邮件 ------------------
发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>;
发送时间: 2021年10月16日(星期六) 中午11:11
@.>;
@.**@.>;
主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25)
请问 你知道咋解决的吗 我到现在也是不知道咋搞了
------------------ 原始邮件 ------------------
发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>;
发送时间: 2021年10月16日(星期六) 中午11:08
@.>;
@.**@.>;
主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25)
我也是同样的报错
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
你们的训练参数写错了吧
-a resnet50_rga -b 64 -d cuhk03labeled -j 0 --opt adam --dropout 0 --combine-trainval --seed 16 --num_gpu 1 --epochs 600 --features 2048 --start_save 300 --branch_name rgasc --data-dir ./data --logs-dir ./logs/RGA-SC/cuhk03labeled_b64f2048
其中 -d cuhk03labeled 对应着D:/PyCode/PersonReID/Relation-Aware-Global-Attention-Networks/main_imgreid.py", line 89 左右有一行代码 dataset == 'cuhk03labeled'
zqx951102 微信 加一下 兄弟 有空继续探讨 我先准备下周组会,加一下 … ------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:13 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25) 没有呢,困扰了好多天了,网上说是全局变量的问题,改完之后还是报错。 ------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:11 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25) 请问 你知道咋解决的吗 我到现在也是不知道咋搞了 ------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:08 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25) 我也是同样的报错 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
请问解决了吗?
Ok … ------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:14 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25) zqx951102 微信 加一下 兄弟 有空继续探讨 我先准备下周组会,加一下 ------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:13 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25) 没有呢,困扰了好多天了,网上说是全局变量的问题,改完之后还是报错。 ------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:11 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25) 请问 你知道咋解决的吗 我到现在也是不知道咋搞了 ------------------ 原始邮件 ------------------ 发件人: "microsoft/Relation-Aware-Global-Attention-Networks" @.>; 发送时间: 2021年10月16日(星期六) 中午11:08 @.>; @.**@.>; 主题: Re: [microsoft/Relation-Aware-Global-Attention-Networks] 报错 (#25) 我也是同样的报错 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
请问解决了吗?
同问,请问解决了吗?
D:\PyCode\Detection-PyTorch-Notebook-master\venv\Scripts\python.exe D:/PyCode/PersonReID/Relation-Aware-Global-Attention-Networks/main_imgreid.py Traceback (most recent call last): File "D:/PyCode/PersonReID/Relation-Aware-Global-Attention-Networks/main_imgreid.py", line 299, in
main(parser.parse_args())
File "D:/PyCode/PersonReID/Relation-Aware-Global-Attention-Networks/main_imgreid.py", line 138, in main
args.combine_trainval, args.rerank)
File "D:/PyCode/PersonReID/Relation-Aware-Global-Attention-Networks/main_imgreid.py", line 89, in get_data
num_classes = dataset.num_train_pids
UnboundLocalError: local variable 'dataset' referenced before assignment
Process finished with exit code 1