Skip to content
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

Eval_SCD输入问题 #21

Open
Jackoldwolf opened this issue Feb 27, 2023 · 2 comments
Open

Eval_SCD输入问题 #21

Jackoldwolf opened this issue Feb 27, 2023 · 2 comments

Comments

@Jackoldwolf
Copy link

Jackoldwolf commented Feb 27, 2023

Hello! 我在运行Eval_SCD.py时,使用second数据集,输入pred_SCD生成的Inference RGB image(im1_rgb),遇到错误
assert unique_set.issubset(set([0, 1, 2, 3, 4, 5, 6])), "unrecognized label number" AssertionError: unrecognized label number
请问EVAL()函数中INFER_DIR1和LABEL_DIR1的输入应该是什么?Thanks!

@Jackoldwolf Jackoldwolf changed the title Eval_SCD Eval_SCD输入问题 Feb 27, 2023
@DingLei14
Copy link
Owner

Hi,
try replacing the rgb predictions with index predictions.

@ZhangQuan-wq
Copy link

INFER_DIR1 = r'' # Inference path1
INFER_DIR2 = r'' # Inference path2
LABEL_DIR1 = r'' # GroundTruth path
LABEL_DIR2 = r'' # GroundTruth path ,excuse me, I really want to know what should be filled in these four places. And I try something like this:INFER_DIR1 = r'C:\Users\dell\Desktop\Bi_SRNet_main\Bi_SRNet\SECOND\Test\im1' # Inference path1
INFER_DIR2 = r'C:\Users\dell\Desktop\Bi_SRNet_main\Bi_SRNet\SECOND\Test\im2' # Inference path2
LABEL_DIR1 = r'C:\Users\dell\Desktop\Bi_SRNet_main\Bi_SRNet\SECOND\Test\label1' # GroundTruth path
LABEL_DIR2 = r'C:\Users\dell\Desktop\Bi_SRNet_main\Bi_SRNet\SECOND\Test\label2' # GroundTruth path, Is it wrong?and when i try this,the error is like this:ValueError: Harmonic mean only defined if all elements greater than or equal to zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants