Skip to content

Instantly share code, notes, and snippets.

View thomprycejones's full-sized avatar
🎯
Focusing

Thomas Pryce Jones thomprycejones

🎯
Focusing
View GitHub Profile
Privacy Policy
built the Russia World Cup 2018 app as an Ad Supported app. This SERVICE is provided by at no cost and is intended for use as is.
This page is used to inform website visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Russia World Cup 2018 unless otherwise defined in this Privacy Policy.
Information Collection and Use
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)