This file contains hidden or 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
| using UnityEngine; | |
| using UnityEngine.UI; | |
| using System; | |
| using UnityEngine.SceneManagement; | |
| public class MenuPrincipal : MonoBehaviour | |
| { | |
| // []:mundo {}:nivel ():nivel enumeracion completa | |
| private Slider musicaSlider; |
This file contains hidden or 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
| // 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(); |
This file contains hidden or 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
| 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) | |
This file contains hidden or 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
| 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' |
This file contains hidden or 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
| 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) | |