microsoft / Relation-Aware-Global-Attention-Networks

We design an effective Relation-Aware Global Attention (RGA) module for CNNs to globally infer the attention.
MIT License
343 stars 65 forks source link

报错 #25

Open zqx951102 opened 3 years ago

zqx951102 commented 3 years ago

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

zqx951102 commented 3 years ago

运行main这个文件时候,报错,有没有出现同样问题的小伙伴啊 咋解决的

xuyongchao-bot commented 3 years ago

我也是同样的报错

zqx951102 commented 3 years ago

请问 你知道咋解决的吗 我到现在也是不知道咋搞了

------------------ 原始邮件 ------------------ 发件人: "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.

xuyongchao-bot commented 3 years ago

没有呢,困扰了好多天了,网上说是全局变量的问题,改完之后还是报错。

------------------ 原始邮件 ------------------ 发件人: "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 commented 3 years ago

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.

xuyongchao-bot commented 3 years ago

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.

mountain-shui commented 2 years ago

你们的训练参数写错了吧 -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'

dcmi2020 commented 2 years ago

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.

请问解决了吗?

dcmi2020 commented 2 years ago

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.

请问解决了吗?

Eliza-wxq commented 2 years ago

同问,请问解决了吗?