Keras, tensorflow: Initializer for variable… is from inside a control-flow construct, a loop or conditional

后端 未结 2 1415
无人及你
无人及你 2020-12-10 03:56

I am training a mask r-cnn model refer to this rep on github: https://github.com/matterport/Mask_RCNN

I meet a problem which seems to be an issue of using Keras, so

2条回答
  •  难免孤独
    2020-12-10 04:32

    The same problem occurs with me while using keras with CNN-LSTM. The code was working fine on GPU server, but when I tried to run it on my local machine, got this weird error.

    The following trick works for me.

    Solution: clear variables and restart your kernel. This work for me. Maybe someone else getting to exactly the same problem what I am going through will be helpful.

提交回复
热议问题