Problems using the UI in beta6

Is there an update to the documentation regarding the visualizer? I am on beta 6 and have


but get

Feb 17, 2020 12:14:18 PM io.vertx.core.http.impl.HttpServerImpl
SEVERE: java.lang.NoSuchMethodError: io.netty.bootstrap.ServerBootstrap.channelFactory(Lio/netty/channel/ChannelFactory;)Lio/netty/bootstrap/AbstractBootstrap;

when trying to use the visualizer. I successfully used the visualizer in the beta4 days. Am I missing some migration steps perhaps?

I’ve extracted your post into a separate thread.

Are you sure you are using the same version of the dependencies? Mixing them usually results in errors like yours.

If you are sure, please share your pom.xml, so we can try looking for the reason of the problem together.

I think I’m correct on versions - but can’t be 100% certain. As an experiment I tried forcing deeplearning4j-ui to be the beta 4 version and it did indeed starting complaining about messed up versions during startup. But as beta 6 that warning didn’t happen. Here’s my pom: my pom.xml

Thank you for making a separate post - it’s probably a much better way of structuring that my reply to the guide post.

It looks like you are trying to use the UI from within a Spark Job?

I think the core problem here is that spark 2.1 depends on netty 3.8.0, and deeplearning4j-ui is using vertx which requires netty 4.1.42.

Similar clashes had happened with earlier versions of the ui too. For this reason the pattern for using the ui with spark is a bit different from when you use it with stand alone training:

See: Deeplearning4J UI and Spark Training (note that the dependencies there apparently haven’t been updated, but it should be the same pattern nevertheless)

I’m not using Spark. But I admit my pom is derived from copying poms from dl4j in the past (probably the dl4j examples) and I may have brought along more than is necessary. Commenting out dependencies not used, and the UI server has sprung to life. Problem between keyboard and chair. Thank you for pointing me in the right direction!