Skip to content

Style Transfer error #857

Open
Open
@alienatorZ

Description

@alienatorZ

Issue Description

Please describe your issue, along with:

  • expected behavior
    Run until execution finished.

  • encountered behavior
    Error stops execution.

Stack Trace:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:66)
Caused by: java.lang.RuntimeException: NativeOps::execPairwiseTransform both operands must have same data type; Expected: [DOUBLE]; Actual: [FLOAT]
at org.nd4j.nativeblas.Nd4jCuda$NativeOps.execPairwiseTransform(Native Method)
at org.nd4j.linalg.jcublas.ops.executioner.CudaExecutioner.invoke(CudaExecutioner.java:1420)
at org.nd4j.linalg.jcublas.ops.executioner.CudaExecutioner.exec(CudaExecutioner.java:635)
at org.nd4j.linalg.api.ndarray.BaseNDArray.addi(BaseNDArray.java:3818)
at org.nd4j.linalg.api.ndarray.BaseNDArray.addi(BaseNDArray.java:3788)
at org.deeplearning4j.examples.styletransfer.NeuralStyleTransfer.createCombinationImage(NeuralStyleTransfer.java:192)
at org.deeplearning4j.examples.styletransfer.NeuralStyleTransfer.transferStyle(NeuralStyleTransfer.java:132)
at org.deeplearning4j.examples.styletransfer.NeuralStyleTransfer.main(NeuralStyleTransfer.java:124)
... 5 more

Version Information

Please indicate relevant versions, including, if relevant:

  • Deeplearning4j version
    1.0.0beta4
  • platform information (OS, etc)
    Windows 10
  • CUDA version, if used
    10.1
  • NVIDIA driver version, if in use
    430.86

Contributing

If you'd like to help us fix the issue by contributing some code, but would
like guidance or help in doing so, please mention it!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions