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

Generating edge maps not working #58

Open
Derdiry opened this issue Jun 13, 2024 · 0 comments
Open

Generating edge maps not working #58

Derdiry opened this issue Jun 13, 2024 · 0 comments

Comments

@Derdiry
Copy link

Derdiry commented Jun 13, 2024

python main.py --model pidinet --config carv4 --sa --dil --resume --iter-size 24 -j 4 --gpu 0 --epochs 20 --lr 0.005 --lr-type multistep --lr-steps 10-16 --wd 1e-4 --savedir output --datadir input --dataset BSDS
resulting :
initialization done
conv weights: lr 0.005000, wd 0.000100 bn weights: lr 0.005000, wd 0.000010 relu weights: lr 0.005000, wd 0.000000
cuda is not used, the running might be slow
Threshold for ground truth: 76.800000 on BSDS_VOC
Threshold for ground truth: 76.800000 on BSDS_VOC
Traceback (most recent call last):
File "C:\Users\Al Gadi\Downloads\pidinet-master\pidinet-master\main.py", line 418, in
main(f)
File "C:\Users\Al Gadi\Downloads\pidinet-master\pidinet-master\main.py", line 228, in main
tr_avg_loss = train(
File "C:\Users\Al Gadi\Downloads\pidinet-master\pidinet-master\main.py", line 280, in train
loss += cross_entropy_loss_RCF(o, label, args.lmbda)
File "C:\Users\Al Gadi\Downloads\pidinet-master\pidinet-master\utils.py", line 150, in cross_entropy_loss_RCF
cost = F.binary_cross_entropy(
File "C:\Users\Al Gadi\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\nn\functional.py", line 3122, in binary_cross_entropy
return torch._C._nn.binary_cross_entropy(input, target, weight, reduction_enum)
RuntimeError: all elements of target should be between 0 and 1
Screenshot 2024-06-13 160351

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

1 participant