-
Notifications
You must be signed in to change notification settings - Fork 32
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
TypeError: 'NoneType' object is not callable help #3
Comments
help please |
All the pretrained CD head models i can not use..but i can use the diffusion model. |
Are you using the correct pre-trained CD model? There are different configurations (t). |
thx for reply!i've check the pre-trained CD model and config,it is correct,i don't know why this alway happen,i've already try it on 2 PC. |
I see. I will look into this problem. The thing is, it is working fine with my machine. I am happy that at least you managed to fine-tune it and got reasonable iou. I will look into this problem and update you if I find the reason. In case if you find the reason, pls post it here so that it will benefit others. Thank you. |
thank you for your patience,i will. |
@Crawlling Did you specify the correct time steps (t) here corresponding to the fine-tuned model you use in the test config: ddpm-cd/config/dsifn_test.json Line 63 in 4876ec6
|
OMG,i forgot this,my bad, sorry for wasting your time.thank you again! |
@Crawlling np. |
How much memory does this method take? Is 24GB not enough by default? |
Hi @sitongzhen Feel free to reach out to me know if you have more questions. Also, the code works on multiple GPUs as well. |
Yes, I understand. Thanks for your answer. When the batch is 8, I find the 24 G memory is insufficient in the training process. |
@sitongzhen I don't expect results to vary significantly, and it is fine given the memory constraint. |
22-07-18 13:32:55.933 - INFO: Begin Model Evaluation (testing).
Traceback (most recent call last):
File "D:\project\ddpm-cd-master\ddpm_cd.py", line 344, in
change_detection.test()
File "D:\project\ddpm-cd-master\model\cd_model.py", line 78, in test
self.pred_cm = self.netCD(self.feats_A, self.feats_B)
File "C:\Users\10576\AppData\Local\conda\conda\envs\ddpm\lib\site-packages\torch\nn\modules\module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "D:\project\ddpm-cd-master\model\cd_modules\cd_head_v2.py", line 107, in forward
diff = torch.abs( layer(f_A) - layer(f_B) )
File "C:\Users\10576\AppData\Local\conda\conda\envs\ddpm\lib\site-packages\torch\nn\modules\module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "D:\project\ddpm-cd-master\model\cd_modules\cd_head_v2.py", line 57, in forward
return self.block(x)
File "C:\Users\10576\AppData\Local\conda\conda\envs\ddpm\lib\site-packages\torch\nn\modules\module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\10576\AppData\Local\conda\conda\envs\ddpm\lib\site-packages\torch\nn\modules\container.py", line 141, in forward
input = module(input)
TypeError: 'NoneType' object is not callable
The text was updated successfully, but these errors were encountered: