Add jenkinsfile for pipeline build and dockerfile for build
Signed-off-by: brian <brian@brutex.de>master
parent
1aa8a1fbf5
commit
2da0a94750
|
@ -56,7 +56,7 @@ pipeline {
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
withGradle {
|
withGradle {
|
||||||
sh 'sh ./gradlew test --stacktrace -PCAVIS_CHIP=cpu \
|
sh 'sh ./gradlew test --stacktrace -PexcludeTests=\'long-running,performance\' -PCAVIS_CHIP=cpu \
|
||||||
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
package org.datavec.image.transform;
|
package org.datavec.image.transform;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import org.bytedeco.javacv.OpenCVFrameConverter;
|
import org.bytedeco.javacv.OpenCVFrameConverter;
|
||||||
import org.datavec.image.data.ImageWritable;
|
import org.datavec.image.data.ImageWritable;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
@ -33,6 +34,7 @@ import static org.bytedeco.opencv.global.opencv_imgproc.*;
|
||||||
|
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class ColorConversionTransform extends BaseImageTransform {
|
public class ColorConversionTransform extends BaseImageTransform {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
package org.datavec.image.transform;
|
package org.datavec.image.transform;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import org.bytedeco.javacv.OpenCVFrameConverter;
|
import org.bytedeco.javacv.OpenCVFrameConverter;
|
||||||
import org.datavec.image.data.ImageWritable;
|
import org.datavec.image.data.ImageWritable;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
@ -32,6 +33,7 @@ import org.bytedeco.opencv.opencv_core.*;
|
||||||
|
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class CropImageTransform extends BaseImageTransform<Mat> {
|
public class CropImageTransform extends BaseImageTransform<Mat> {
|
||||||
|
|
||||||
private int cropTop;
|
private int cropTop;
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
package org.datavec.image.transform;
|
package org.datavec.image.transform;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import org.bytedeco.javacv.OpenCVFrameConverter;
|
import org.bytedeco.javacv.OpenCVFrameConverter;
|
||||||
import org.datavec.image.data.ImageWritable;
|
import org.datavec.image.data.ImageWritable;
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
|
@ -36,6 +37,7 @@ import static org.bytedeco.opencv.global.opencv_imgproc.*;
|
||||||
@JsonIgnoreProperties({"splitChannels", "converter"})
|
@JsonIgnoreProperties({"splitChannels", "converter"})
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class EqualizeHistTransform extends BaseImageTransform {
|
public class EqualizeHistTransform extends BaseImageTransform {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
package org.datavec.image.transform;
|
package org.datavec.image.transform;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import org.bytedeco.javacv.FFmpegFrameFilter;
|
import org.bytedeco.javacv.FFmpegFrameFilter;
|
||||||
import org.bytedeco.javacv.FrameFilter;
|
import org.bytedeco.javacv.FrameFilter;
|
||||||
import org.datavec.image.data.ImageWritable;
|
import org.datavec.image.data.ImageWritable;
|
||||||
|
@ -35,6 +36,7 @@ import static org.bytedeco.ffmpeg.global.avutil.*;
|
||||||
@JsonIgnoreProperties({"filter", "converter"})
|
@JsonIgnoreProperties({"filter", "converter"})
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class FilterImageTransform extends BaseImageTransform {
|
public class FilterImageTransform extends BaseImageTransform {
|
||||||
|
|
||||||
private FFmpegFrameFilter filter;
|
private FFmpegFrameFilter filter;
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
package org.datavec.image.transform;
|
package org.datavec.image.transform;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import org.bytedeco.javacv.OpenCVFrameConverter;
|
import org.bytedeco.javacv.OpenCVFrameConverter;
|
||||||
import org.datavec.image.data.ImageWritable;
|
import org.datavec.image.data.ImageWritable;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
@ -34,6 +35,7 @@ import static org.bytedeco.opencv.global.opencv_imgproc.*;
|
||||||
|
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class ResizeImageTransform extends BaseImageTransform<Mat> {
|
public class ResizeImageTransform extends BaseImageTransform<Mat> {
|
||||||
|
|
||||||
private int newHeight;
|
private int newHeight;
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
package org.datavec.image.transform;
|
package org.datavec.image.transform;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
@ -43,6 +44,7 @@ import static org.bytedeco.opencv.global.opencv_imgproc.*;
|
||||||
@JsonIgnoreProperties({"interMode", "borderMode", "borderValue", "converter"})
|
@JsonIgnoreProperties({"interMode", "borderMode", "borderValue", "converter"})
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class RotateImageTransform extends BaseImageTransform<Mat> {
|
public class RotateImageTransform extends BaseImageTransform<Mat> {
|
||||||
|
|
||||||
private float centerx;
|
private float centerx;
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
package org.datavec.image.transform;
|
package org.datavec.image.transform;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import org.bytedeco.javacv.OpenCVFrameConverter;
|
import org.bytedeco.javacv.OpenCVFrameConverter;
|
||||||
import org.datavec.image.data.ImageWritable;
|
import org.datavec.image.data.ImageWritable;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
@ -34,6 +35,7 @@ import static org.bytedeco.opencv.global.opencv_imgproc.*;
|
||||||
|
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class ScaleImageTransform extends BaseImageTransform<Mat> {
|
public class ScaleImageTransform extends BaseImageTransform<Mat> {
|
||||||
|
|
||||||
private float dx;
|
private float dx;
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
package org.datavec.image.transform;
|
package org.datavec.image.transform;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import org.bytedeco.javacv.CanvasFrame;
|
import org.bytedeco.javacv.CanvasFrame;
|
||||||
import org.bytedeco.javacv.Frame;
|
import org.bytedeco.javacv.Frame;
|
||||||
import org.datavec.image.data.ImageWritable;
|
import org.datavec.image.data.ImageWritable;
|
||||||
|
@ -29,6 +30,7 @@ import javax.swing.*;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class ShowImageTransform extends BaseImageTransform {
|
public class ShowImageTransform extends BaseImageTransform {
|
||||||
|
|
||||||
CanvasFrame canvas;
|
CanvasFrame canvas;
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
package org.datavec.image.transform;
|
package org.datavec.image.transform;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
@ -43,6 +44,7 @@ import static org.bytedeco.opencv.global.opencv_imgproc.*;
|
||||||
@JsonIgnoreProperties({"interMode", "borderMode", "borderValue", "converter"})
|
@JsonIgnoreProperties({"interMode", "borderMode", "borderValue", "converter"})
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class WarpImageTransform extends BaseImageTransform<Mat> {
|
public class WarpImageTransform extends BaseImageTransform<Mat> {
|
||||||
|
|
||||||
private float[] deltas;
|
private float[] deltas;
|
||||||
|
|
|
@ -52,6 +52,7 @@ public class DynamicCustomOp extends DifferentialFunction implements CustomOp {
|
||||||
private String opName;
|
private String opName;
|
||||||
@Builder.Default
|
@Builder.Default
|
||||||
protected List<INDArray> inputArguments = new ArrayList<>();
|
protected List<INDArray> inputArguments = new ArrayList<>();
|
||||||
|
|
||||||
@Builder.Default
|
@Builder.Default
|
||||||
protected List<INDArray> outputArguments = new ArrayList<>();
|
protected List<INDArray> outputArguments = new ArrayList<>();
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@ import org.bytedeco.javacpp.Pointer;
|
||||||
import org.junit.jupiter.api.AfterEach;
|
import org.junit.jupiter.api.AfterEach;
|
||||||
import org.junit.jupiter.api.Assumptions;
|
import org.junit.jupiter.api.Assumptions;
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
|
import org.junit.jupiter.api.Timeout;
|
||||||
import org.nd4j.common.base.Preconditions;
|
import org.nd4j.common.base.Preconditions;
|
||||||
import org.nd4j.common.config.ND4JSystemProperties;
|
import org.nd4j.common.config.ND4JSystemProperties;
|
||||||
import org.nd4j.linalg.api.buffer.DataType;
|
import org.nd4j.linalg.api.buffer.DataType;
|
||||||
|
@ -42,6 +43,7 @@ import java.util.Map;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@Timeout(60*10)
|
||||||
public abstract class BaseDL4JTest {
|
public abstract class BaseDL4JTest {
|
||||||
|
|
||||||
protected long startTime;
|
protected long startTime;
|
||||||
|
|
|
@ -27,6 +27,7 @@ import org.deeplearning4j.datasets.iterator.impl.MnistDataSetIterator;
|
||||||
import org.junit.jupiter.api.AfterAll;
|
import org.junit.jupiter.api.AfterAll;
|
||||||
import org.junit.jupiter.api.BeforeAll;
|
import org.junit.jupiter.api.BeforeAll;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.junit.jupiter.api.TestInstance;
|
||||||
import org.junit.jupiter.api.io.TempDir;
|
import org.junit.jupiter.api.io.TempDir;
|
||||||
import org.nd4j.linalg.api.ndarray.INDArray;
|
import org.nd4j.linalg.api.ndarray.INDArray;
|
||||||
import org.nd4j.linalg.api.ops.impl.reduce.longer.MatchCondition;
|
import org.nd4j.linalg.api.ops.impl.reduce.longer.MatchCondition;
|
||||||
|
@ -44,6 +45,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
@org.junit.jupiter.api.Timeout(300)
|
@org.junit.jupiter.api.Timeout(300)
|
||||||
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||||
public class MnistFetcherTest extends BaseDL4JTest {
|
public class MnistFetcherTest extends BaseDL4JTest {
|
||||||
|
|
||||||
@TempDir
|
@TempDir
|
||||||
|
|
Loading…
Reference in New Issue