为了账号安全,请及时绑定邮箱和手机立即绑定

使用dl4j和FCN网络进行语义分割

使用dl4j和FCN网络进行语义分割

慕运维8079593 2021-05-06 10:06:45
我已经签出了dl4j示例并执行了AnimalsClassification示例来成功进行测试。我必须训练,评估和预测(使用)像UNet这样的语义分割算法,因为输入图像的大小与FCN的大小不同。并改变了网络的AnimalsClassification例子UNET从这个链接https://github.com/deeplearning4j/deeplearning4j/blob/master/deeplearning4j/deeplearning4j-zoo/src/main/java/org/deeplearning4j/zoo/model/UNet.java但出现错误。您能帮我解决这个错误吗?错误:SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]19:22:39,951 INFO  ~ Load data....19:22:40,696 INFO  ~ Build model....19:22:41,363 INFO  ~ Loaded [CpuBackend] backend19:22:44,955 INFO  ~ Number of threads used for NativeOps: 219:22:45,555 INFO  ~ Number of threads used for BLAS: 219:22:45,562 INFO  ~ Backend used: [CPU]; OS: [Linux]19:22:45,562 INFO  ~ Cores: [2]; Memory: [1.3GB];19:22:45,562 INFO  ~ Blas vendor: [OPENBLAS]19:22:56,425 WARN  ~ Layer "Layer not named" distribution is set but will not be applied unless weight init is set to WeighInit.DISTRIBUTION.Exception in thread "main" java.lang.IllegalStateException: Invalid configuration: network has no inputs. Use .addInputs(String...) to label    (and give an ordering to) the network inputs    at org.deeplearning4j.nn.conf.ComputationGraphConfiguration.validate(ComputationGraphConfiguration.java:279)    at org.deeplearning4j.nn.conf.ComputationGraphConfiguration$GraphBuilder.build(ComputationGraphConfiguration.java:918)    at org.deeplearning4j.examples.convolution.AnimalsClassification.graphBuilder(AnimalsClassification.java:443)    at org.deeplearning4j.examples.convolution.AnimalsClassification.run(AnimalsClassification.java:145)    at org.deeplearning4j.examples.convolution.AnimalsClassification.main(AnimalsClassification.java:447)Process finished with exit code 1
查看完整描述

1 回答

?
HUX布斯

TA贡献1876条经验 获得超6个赞

它说明堆栈跟踪中正确的错误。您需要在图形上调用setInputs。这类似于我们在底部设置输出的方式。请仔细阅读错误消息。


查看完整回答
反对 回复 2021-05-26
  • 1 回答
  • 0 关注
  • 163 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信