-
Notifications
You must be signed in to change notification settings - Fork 21
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
maxF-measure是否存在问题,我所有的评测maxF-measure值都没有发生变化 #3
Comments
文件目录和名称是否按照示例样式给出? |
是的,除了最里面的文件名,如gt和DSS文件夹里的文件名为:cropAndFliped
…------------------ 原始邮件 ------------------
发件人: "Qi Han"<[email protected]>;
发送时间: 2020年7月5日(星期天) 中午11:09
收件人: "Hanqer/Evaluate-SOD"<[email protected]>;
抄送: "(1R19W2) 活动中心"<[email protected]>;"Author"<[email protected]>;
主题: Re: [Hanqer/Evaluate-SOD] maxF-measure是否存在问题,我所有的评测maxF-measure值都没有发生变化 (#3)
文件目录和名称是否按照示例样式给出?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
由于问题我难以复现,能否把你的测试图文件夹部分发给我邮箱,我来debug一下呢? [email protected] |
图片在附件了,这两个的F-measure真不该一样,由于多次评测的Fmeasure都一样所有产生了怀疑。另外还需修改一处,因为这是tif图片,修改处在dataloader.py,使用图片中的代码
def __getitem__(self, item):
#pred = Image.open(self.image_path[item]).convert('L')
#pred = Image.open(self.image_path[item]).convert('L')
#这个方法可以(转灰度图)
pred = cv2.imread(self.image_path[item],cv2.COLOR_RGB2GRAY)
pred = np.asarray(pred, dtype=np.uint8)
pred = cv2.cvtColor(pred, cv2.COLOR_RGB2GRAY)
pred = pred/255
#pred = TIFF.open(self.image_path[item], mode='r').read_image().convert('L')
#gt = Image.open(self.label_path[item]).convert('L')
#gt = Image.open(self.label_path[item]).convert('L')
# 这个方法可以(转灰度图)
gt = cv2.imread(self.label_path[item])
gt = cv2.cvtColor(gt, cv2.COLOR_RGB2GRAY)
gt = gt / 255
#gt = TIFF.open(self.label_path[item], mode='r').read_image().convert('L')
# print(self.image_path[item], self.label_path[item])
if pred.size != gt.size:
pred = pred.resize(gt.size, Image.BILINEAR)
return pred, gt
------------------ 原始邮件 ------------------
发件人: "Qi Han"<[email protected]>;
发送时间: 2020年7月5日(星期天) 中午11:14
收件人: "Hanqer/Evaluate-SOD"<[email protected]>;
抄送: "(1R19W2) 活动中心"<[email protected]>;"Author"<[email protected]>;
主题: Re: [Hanqer/Evaluate-SOD] maxF-measure是否存在问题,我所有的评测maxF-measure值都没有发生变化 (#3)
由于问题我难以复现,能否把你的测试图文件夹部分发给我邮箱,我来debug一下呢? [email protected]
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
从QQ邮箱发来的超大附件
ecaAttention+train.rar (56.57M, 2020年08月04日 11:15 到期)进入下载页面:http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=2f64656500c14e9f22edb85947350a4c02075604560059024905540451180c525d56480450020d4e5c015c5255050d01555601516123380607052411155056170d0b0b4e1547590a0a4a1704133505&code=ddeea58c
Resnest.rar (51.65M, 2020年08月04日 11:15 到期)进入下载页面:http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=25623536fef5fccd23ebe80a17640b1e0451060001060e004853030700490d575c5a18540452081c5206030109530f0156040600316f396300115b53421017430410350b&code=eb561d91
|
@1021151558 你的目录设置是没有问题的,问题可能发生在,dataloader返回的图像是0-255的uint8格式,而你的修改将其转换为了0-1的float32格式,导致后面f-measure在根据阈值计算时发生错误. 建议修改正确的dataloader返回格式,以支持对tiff图像的读取并返回正确的格式. |
您好,非常感谢您的代码。我想问一下里面的max-fmeasure代码怎么替换为Weighted F-measure,max-Emeasure代码怎么替换为E-measure。需要修改哪些参数呀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: