目前在教程和其他地方广泛使用的函数的形式如下:
[INFO] [talledLocalContainer] 04.06.2015 09:26:09 ERROR http-bio-8080-exec-9 [GlobalUtils.createSession:234] Error creating repository connection
[INFO] [talledLocalContainer] javax.jcr.LoginException: Wrong username or password.
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1493)
[INFO] [talledLocalContainer] at org.hippoecm.repository.impl.RepositoryDecorator.login(RepositoryDecorator.java:59)
[INFO] [talledLocalContainer] at org.hippoecm.repository.HippoRepositoryImpl.login(HippoRepositoryImpl.java:109)
[INFO] [talledLocalContainer] at org.hippoecm.repository.HippoRepositoryImpl.login(HippoRepositoryImpl.java:98)
[INFO] [talledLocalContainer] at org.onehippo.cms7.essentials.dashboard.utils.GlobalUtils.createSession(GlobalUtils.java:232)
[INFO] [talledLocalContainer] at org.onehippo.cms7.essentials.dashboard.ctx.DefaultPluginContext.createSession(DefaultPluginContext.java:114)
[INFO] [talledLocalContainer] at org.onehippo.cms7.essentials.dashboard.utils.CndUtils.getNodeTypesOfType(CndUtils.java:315)
[INFO] [talledLocalContainer] at org.onehippo.cms7.essentials.plugins.gallery.GalleryPluginResource.fetchExisting(GalleryPluginResource.java:352)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:483)
[INFO] [talledLocalContainer] at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
[INFO] [talledLocalContainer] at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
[INFO] [talledLocalContainer] at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
[INFO] [talledLocalContainer] at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:165)
[INFO] [talledLocalContainer] at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:89)
[INFO] [talledLocalContainer] at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
[INFO] [talledLocalContainer] at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
[INFO] [talledLocalContainer] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
[INFO] [talledLocalContainer] at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
[INFO] [talledLocalContainer] at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:237)
[INFO] [talledLocalContainer] at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:239)
[INFO] [talledLocalContainer] at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:213)
[INFO] [talledLocalContainer] at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:131)
[INFO] [talledLocalContainer] at org.onehippo.cms7.essentials.servlet.RestServlet.invoke(RestServlet.java)
[INFO] [talledLocalContainer] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:266)
[INFO] [talledLocalContainer] at org.onehippo.cms7.essentials.servlet.RestServlet.handleRequest(RestServlet.java)
[INFO] [talledLocalContainer] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:191)
[INFO] [talledLocalContainer] at org.onehippo.cms7.essentials.servlet.RestServlet.doGet(RestServlet.java)
[INFO] [talledLocalContainer] at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
[INFO] [talledLocalContainer] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:242)
[INFO] [talledLocalContainer] at org.onehippo.cms7.essentials.servlet.RestServlet.service(RestServlet.java)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
[INFO] [talledLocalContainer] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
[INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[INFO] [talledLocalContainer] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
[INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
[INFO] [talledLocalContainer] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
[INFO] [talledLocalContainer] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:745)
[INFO] [talledLocalContainer] Caused by: javax.security.auth.login.FailedLoginException: Wrong username or password.
[INFO] [talledLocalContainer] at org.hippoecm.repository.security.UnsuccessfulAuthenticationHandler.handle(UnsuccessfulAuthenticationHandler.java:27)
[INFO] [talledLocalContainer] at org.hippoecm.repository.security.HippoLoginModule.login(HippoLoginModule.java:149)
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.security.authentication.LocalAuthContext.login(LocalAuthContext.java:86)
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1465)
如果对于CNN的第一层,我conv_out = conv2d(
input= x, # some 4d tensor
filters= w, # some shared variable
filter_shape= [ nkerns, stack_size, filter_height, filter_width ],
image_shape= [ batch_size, stack_size, height, width ]
)
为filter_shape
,这是核数为20,每个7 X 7,' 1& #39;代表 ?我的[ 20, 1 , 7, 7 ]
是image_shape
。
这个卷积现在输出一个形状[100, 1, 84, 84 ]
的张量,我理解。我的下一个图层现在采用参数[ 100, 20, 26, 26]
= filter_shape
,[50, 20, 5 ,5 ]
= image_shape
并生成形状[ 100, 20 ,26, 26 ]
的输出。我似乎有点理解这个操作,除非我想使用' 50'过滤层每个工作在前面生成的20个特征图上,我不应该生成1000个特征图而不是仅产生50个特征图吗?为了重申我的问题,我有一堆20个特征映射,每个特征映射运行50个内核的卷积,我的输出形状不应该是[ 100 ,50 ,11 ,11 ]
而不是[100, 1000, 11, 11]
?
答案 0 :(得分:4)
回答你的问题:
1
代表输入通道的数量。当你似乎使用灰度图像时,这是一个。对于彩色图像,它可以是3.对于第二个问题中的其他卷积层,它必须等于前一层生成的输出数量。
在[50, 20, 5, 5]
的输入信号上使用大小为[100, 20, 26, 26]
的过滤器实际上也是您第一个问题的一个很好的示例。你有50个形状[20, 5, 5]
的过滤器。每张图片都是[20, 26, 26]
形状。卷积每次使用所有20个通道:滤波器0应用于图像通道0,滤波器1应用于图像1,整个结果总结。这有意义吗?