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

exception during SEAM inference #18

Open
saysth opened this issue Nov 11, 2020 · 6 comments
Open

exception during SEAM inference #18

saysth opened this issue Nov 11, 2020 · 6 comments

Comments

@saysth
Copy link

saysth commented Nov 11, 2020

Dear YudeWang,
I have successfully trained the model but during the stage of SEAM inference, the code will stop at a random iter(38, 14 or whatever) and don't go on and out_cam(or out_crf) folder won't produce file anymore. How can I solve the exception?

@SCoulY
Copy link

SCoulY commented Nov 12, 2020

@saysth Hi, did u train ur model from scratch? Can u share ur hyperparam setups? I encounter problems in training from scratch using their default setup.

@saysth
Copy link
Author

saysth commented Nov 13, 2020

@SCoulY I just followed the instruction 1. SEAM training: python train_SEAM.py --voc12_root VOC2012 --weights ./xxx.pth --session_name $your_session_name
I seemed to modify the line91 as weights_dict = torch.load(args.weights, map_location='cpu')

@li-shuang1997
Copy link

@saysth Hi,I also encountered the same problem as you. Have you solved it? How was it resolved?

@saysth
Copy link
Author

saysth commented Dec 18, 2020

@li-shuang1997 no, i haven't

@Fennyhhh
Copy link

I think it may because line68:
thread_pool = pyutils.BatchThreader(_work, list(enumerate(img_list)), batch_size=12, prefetch_size=0, processes=args.num_workers) cam_list = thread_pool.pop_results()
here, the code use threads . it may cause this problem

@Fennyhhh
Copy link

Fennyhhh commented Feb 22, 2021

I have changed it as:
cam_list = [ _work(i[0],i[1]) for i in list(enumerate(img_list))]
I hope it may help you.

@li-shuang1997 no, i haven't

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

4 participants