我已經(jīng)簽出了dl4j示例并執(zhí)行了AnimalsClassification示例來成功進行測試。我必須訓練,評估和預測(使用)像UNet這樣的語義分割算法,因為輸入圖像的大小與FCN的大小不同。并改變了網(wǎng)絡的AnimalsClassification例子UNET從這個鏈接https://github.com/deeplearning4j/deeplearning4j/blob/master/deeplearning4j/deeplearning4j-zoo/src/main/java/org/deeplearning4j/zoo/model/UNet.java但出現(xiàn)錯誤。您能幫我解決這個錯誤嗎?錯誤: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
使用dl4j和FCN網(wǎng)絡進行語義分割
慕運維8079593
2021-05-06 10:06:45