Closed kuailedagongzai closed 4 years ago
Hi @kuailedagongzai
This is how eager mode works in TensorFlow2.
If you don't run the network at first, this model wouldn't know the structure of network, causing this "a model with 0 layers" problem.
Thanks for advices,but everytime i try to feed the data into the model,my jupyter will restart.How could i avoid this situation?By the way, I tried this scripts in vscode ,then my vscode restart. I stored the data in anothor directory , so i made a little modification to coco.py .Does this matter ?These are my modifications.
Maybe you could check out your GPU memory? One reason to cause this crash is OOM.
You can try this scripts in Terminal and figure it out~
Actually,the GPU in my notebook could not be used. Therefore , i use CPU only. There are 12G memory in my systerm.And when i run this script in the terminal ,it report a 'Segmentation fault'
It can't work in my CPU either. Maybe it's a bug?
I fix this bug in this commit
Now the weight initialization method is Xavier(default) instead of He
I get my jupyter restart when i excute ' _ = model((batch_imgs, batch_metas), training=False) ',after dataset loaded. If i don't excute this line ,i got a error in load weights procedure. The sreenshots of these problems are as belows.