Skip to content

Instantly share code, notes, and snippets.

View thomprycejones's full-sized avatar
🎯
Focusing

Thomas Pryce Jones thomprycejones

🎯
Focusing
View GitHub Profile
using UnityEngine;
using UnityEngine.UI;
using System;
using UnityEngine.SceneManagement;
public class MenuPrincipal : MonoBehaviour
{
// []:mundo {}:nivel ():nivel enumeracion completa
private Slider musicaSlider;
// Get the model
DataInputStream dis = new DataInputStream(new FileInputStream(MODEL_path));
INDArray newParams = Nd4j.read(dis);
dis.close();
// Open the model
MultiLayerNetwork deserializedModel = ModelSerializer.restoreMultiLayerNetwork(dis);
// Get the imageFile (sized 28x28) and convert to INDArray
NativeImageLoader nativeImageLoader = new NativeImageLoader();
12-04 17:47:08.801 15036-15036/com.thomasprycejones.touristeye E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.thomasprycejones.touristeye, PID: 15036
Theme: themes:{}
java.lang.ExceptionInInitializerError
at org.nd4j.nativeblas.NativeOpsHolder.<init>(NativeOpsHolder.java:16)
at org.nd4j.nativeblas.NativeOpsHolder.<clinit>(NativeOpsHolder.java:9)
at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.<init>(NativeOpExecutioner.java:38)
compile group: 'org.nd4j', name: 'nd4j-native-platform', version: '0.7.1'
compile group: 'org.deeplearning4j', name: 'deeplearning4j-core', version: '0.7.1'
compile group: 'org.deeplearning4j', name: 'deeplearning4j-nn', version: '0.7.1'
12-04 17:34:08.681 7098-7098/com.thomasprycejones.touristeye E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.thomasprycejones.touristeye, PID: 7098
Theme: themes:{}
java.lang.ExceptionInInitializerError
at com.thomasprycejones.touristeye.DeepLearning.Classify.Recognize(Classify.java:31)
at com.thomasprycejones.touristeye.Utils.FirebaseUtils.savePictureForUpload(FirebaseUtils.java:90)
at com.thomasprycejones.touristeye.ProcessActivity$4.onClick(ProcessActivity.java:261)