-
Notifications
You must be signed in to change notification settings - Fork 25
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
Undefined functions appear when running train_CCAM_VOC12.py? #19
Comments
Hi, the |
Thank you for your reply, but there are other problems. |
Hi, actually the program will automatically create the folder |
Traceback (most recent call last): |
Installing pydensecrf from source can address the issue. |
I downloaded the whole folder and added it to wsss, but the above problem still occurred. Is it the wrong way to download the whole file? |
Install using |
When running the evaluation: |
/home/lcl/anaconda3/envs/BECO/bin/python3.10 /home/lcl/BECO/BECO-main/CCAM-master/WSSS/evaluate_using_background_cues.py --domain train --with_bg_cues True --bg_dir /home/lcl/BECO/BECO-main/CCAM-master/WSSS/experiments/predictions/CCAM_VOC12_MOCO@train@scale=0.5,1.0,1.5,2.0@t=0.3@ccam_inference_crf=10 |
type=str)parser.add_argument('--experiment_name', default='CCAM_VOC12_MOCO@train@scale=0.5,1.0,1.5,2.0@t=0.3@ccam_inference_crf=10', parser.add_argument("--predict_dir", default='', type=str) parser.add_argument('--logfile', default='', type=str) parser.add_argument('--mode', default='npy', type=str) # png parser.add_argument('--bg_dir', default='', type=str) |
Refine the background cues You can use the extracted background cues as pseudo supervision signal to train a saliency detector like PoolNet to further refine the background cues and we provide the code for background cues refinement in the directory ./PoolNet. We also provide our refined background cues at here.Does this have to run? |
Could you provide some predicted results of your method and the extracted background cues? |
/home/lcl/anaconda3/envs/BECO/bin/python3.10 /home/lcl/BECO/BECO-main/CCAM-master/WSSS/train_CCAM_VOC12.py --tag CCAM_VOC12_MOCO --pretrained mocov2 --alpha 0.25 [i] mean values is [0.485, 0.456, 0.406] [i] log_iteration : 66
|
I mean you can go to the directory |
That's good. How about the generated background cues? And your cams to be refined. Could you please provide some examples? |
May I add your contact information? |
|
If your extracted cams and background cues are correct, the evaluation results may be good. |
Okay, I'll try again.
爩
***@***.***
…------------------ 原始邮件 ------------------
发件人: "Jinheng ***@***.***>;
发送时间: 2023年9月5日(星期二) 下午3:39
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [CVI-SZU/CCAM] Undefined functions appear when running train_CCAM_VOC12.py? (Issue #19)
If your extracted cams and background cues are correct, the evaluation results may be good.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
File "/home/lcl/BECO/BECO-main/CCAM-master/WSSS/train_CCAM_VOC12.py", line 240, in
visualize_heatmap(args.tag, images.clone().detach(), ccam, 0, iteration)
NameError: name 'visualize_heatmap' is not defined
The text was updated successfully, but these errors were encountered: