This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package global.skymind.solution.humanactivity; | |
import org.datavec.api.records.reader.SequenceRecordReader; | |
import org.datavec.api.records.reader.impl.csv.CSVSequenceRecordReader; | |
import org.datavec.api.split.NumberedFileInputSplit; | |
import org.deeplearning4j.api.storage.StatsStorage; | |
import org.deeplearning4j.arbiter.ComputationGraphSpace; | |
import org.deeplearning4j.arbiter.conf.updater.AdamSpace; | |
import org.deeplearning4j.arbiter.layers.LSTMLayerSpace; | |
import org.deeplearning4j.arbiter.layers.RnnOutputLayerSpace; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.datavec.api.records.reader.RecordReader; | |
import org.datavec.api.records.reader.SequenceRecordReader; | |
import org.datavec.api.records.reader.impl.csv.CSVRecordReader; | |
import org.datavec.api.records.reader.impl.csv.CSVSequenceRecordReader; | |
import org.datavec.api.split.NumberedFileInputSplit; | |
import org.deeplearning4j.api.storage.StatsStorage; | |
import org.deeplearning4j.datasets.datavec.RecordReaderMultiDataSetIterator; | |
import org.deeplearning4j.datasets.datavec.SequenceRecordReaderDataSetIterator; | |
import org.deeplearning4j.nn.api.OptimizationAlgorithm; | |
import org.deeplearning4j.nn.conf.ComputationGraphConfiguration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: "kubeflow.org/v1" | |
kind: "TFJob" | |
metadata: | |
name: "inception-train-job" | |
spec: | |
replicaSpecs: | |
- replicas: 4 | |
tfReplicaType: WORKER | |
template: | |
spec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: PersistentVolume | |
apiVersion: v1 | |
metadata: | |
name: mypv | |
namespace: kubeflow | |
labels: | |
type: local | |
spec: | |
storageClassName: sata | |
capacity: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.yptheangel.dl4jandroid.yolo_objdetection; | |
import android.app.Activity; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.os.Environment; | |
import android.util.Log; | |
import com.yptheangel.dl4jandroid.yolo_objdetection.utils.VOCLabelsAndroid; | |
import static android.os.Environment.getExternalStoragePublicDirectory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 27 | |
buildToolsVersion "28.0.3" | |
defaultConfig { | |
applicationId "com.yptheangel.dl4jandroid.yolo_objdetection" | |
minSdkVersion 24 | |
targetSdkVersion 24 | |
versionCode 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.TimeUnit; | |
public class JavaTimer{ | |
public static void main(String []args){ | |
long start_time =System.nanoTime(); | |
//Create a delay of 1 second or 1000milliseconds | |
try{ | |
Thread.sleep(1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import timeit | |
import time | |
start_time = timeit.default_timer() | |
# Using time module to create the delay, you can replce this line with your process | |
time.sleep(1) | |
end_time = timeit.default_timer() | |
elapsed_time = end_time - start_time | |
# Round the elapsed time to 2 decimal points | |
print("Elapsed time: {}".format(round(elapsed_time,2))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int baseline[]={0}; | |
Size textSize=getTextSize("Hello World", FONT_HERSHEY_DUPLEX, 1,1,baseline); | |
int textwidth=textSize.get(0); | |
int textheight=textSize.get(1); | |
rectangle(yourMat, new Point(x1 + 2, y2 - 2), new Point(x1 + 2+textwidth, y2 - 2-textheight),RGB(255,255,0), FILLED,0,0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int baseline[]={0}; | |
Size textSize=getTextSize("Hello World", FONT_HERSHEY_DUPLEX, 1,1,baseline); | |
int textwidth=textSize.get(0); | |
int textheight=textSize.get(1); | |
rectangle(yourMat, new Point(x1 + 2, y2 - 2), new Point(x1 + 2+textwidth, y2 - 2-textheight),RGB(255,255,0), FILLED,0,0); | |
putText(yourMat, "Hello World", new Point(x1 + 2, y2 - 2), FONT_HERSHEY_DUPLEX, 1, RGB(0,0,0)); |
OlderNewer