进行迁移学习时,使用model_main.py
进行训练,无脑报错#“ERROR:tensorflow:Model diverged with loss = NaN.”
。后来上github一查,看了一些言论,应该是版本问题,可以替换为models\research\object_detection\legacy\train.py
来进行训练。
也就说将原来你使用的:
python model_main.py --model_dir=training/ --pipeline_config_path=training/ssd_inception_v2_coco.config --logtostderr
替换为:
python ./legacy/train.py --pipeline_config_path=pipeline_config/ssd_mobilenet_v2_coco.config --train_dir=training/ --logtostderr
注意关键字不同
ps.也有人说将tf升级到1.11版本就行,但是升级真的牵一发动全身。。需谨慎,而且我还没试过。。不敢妄言
详细解决方案
tensorflow object_detection api ERROR:tensorflow:Model diverged with loss = NaN.
热度:70 发布时间:2023-10-27 03:04:26.0
相关解决方案
- java报错Syntax error on token "return" invalid Type解决方案
- The server encountered an internal error () that prevented it from fulfilling th解决方案
- struts2的Action怎么返回指定路径的jsp或html,而不是返回SUCCESS、ERROR
- 'Update Progress' has encountered a problem An internal error has occurred解决方案
- JSP向SQL数据库中写下数据时提示:Network error IOException: Connection refused: connect
- Error creating bean with name 'sessionFactory' defined in ServletContext resourc解决方法
- servlet+jquery1.4.2(ajax error?)解决方案
- Parse error in application web.xml,该如何解决
- java itext导出报Connection reset by peer: socket write error,该怎么处理
- Error reading resource: com/user/User.hbm.xml,该怎么解决
- fatal error; call to a member function query() on a non-object异常求回答啊 php+sqlite
- Error creating bean with name 'sessionFactory' defined in class path resource解决方法
- 大家帮帮忙呀The server encountered an internal error () that prevented it解决方法
- 【100分】怎么监控多台服务器的log,alert,error
- SOS-(奇怪现象)服务器暂不可用500 internal server error,该怎么解决
- tomcat没法运行Could not publish to the server. Error while expanding
- JSF中javax.faces.el.PropertyNotFoundException: Error getting property的有关问题
- Syntax error on token "{" { expected after this token,该怎么解决
- WEBstruts The server encountered an internal error () that prevented it fr解决思路
- 'Update Progress' has encountered a problem An internal error has occurred解决方案
- object error!
- ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error,该如何解决
- Syntax error, insert "}" to complete Block,该如何处理
- error 哪位高手能帮忙解释哈什么有关问题
- log4j:ERROR setFile(null,false) call failed.解决方法
- 刚学struts写了一个很小很小的例子,但在部署之后启动tomcat报错,Error deploying configuration descriptor!解决方法
- Error occured during reequest processing: Java heap space,该怎么处理
- 联网有时会报java.io.IOException: error 10054 during TCP read异常
- out of Memory Error java/lang/OutOfMemortyError,该怎么解决
- Java.io.IOException: error 3 during http over WSP 这个是什么东东