Tensorflow Demo iOS App with different models not working











up vote
0
down vote

favorite












System information




OS Platform and Distribution: macOS Mojave 10.14.2 Beta


Mobile device : iPhone 8P / IPhone XR


TensorFlow installed from (source or binary): SOURCE


TensorFlow version: Newest


Python version: 3.7


Installed using virtualenv? pip? conda?: Unknown


Bazel version (if compiling from source): Unknown


GCC/Compiler version (if compiling from source): Unknown


CUDA/cuDNN version:


GPU model and memory:


Describe the problem


Xcode Crashed when I import my models into the TF-Lite example project. I don't know what to do or try to get the models to work.



Provide the exact sequence of commands / steps that you executed before running into the problem




1.Import the TFlite and txt files


2.copy the path if needle ( Xcode asks this )


3.rename model_file_name to imported tflite model


4.rename label_file_name to imported txt file


Any other info / logs


Loaded model 1resolved reportertensorflow/contrib/lite/kernels/squeeze.cc:64 current >= 0 && current < input_num_dims && input_dims->data[current] == 1 was not true.
Node 66 failed to prepare.



Failed to allocate tensors!2018-11-20 13:08:26.664470-0600 tflite_camera_example[9610:2085000] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-11-20 13:08:26.664721-0600 tflite_camera_example[9610:2085000] [MC] Reading from public effective user settings.



Xcode Debugger output










share|improve this question


























    up vote
    0
    down vote

    favorite












    System information




    OS Platform and Distribution: macOS Mojave 10.14.2 Beta


    Mobile device : iPhone 8P / IPhone XR


    TensorFlow installed from (source or binary): SOURCE


    TensorFlow version: Newest


    Python version: 3.7


    Installed using virtualenv? pip? conda?: Unknown


    Bazel version (if compiling from source): Unknown


    GCC/Compiler version (if compiling from source): Unknown


    CUDA/cuDNN version:


    GPU model and memory:


    Describe the problem


    Xcode Crashed when I import my models into the TF-Lite example project. I don't know what to do or try to get the models to work.



    Provide the exact sequence of commands / steps that you executed before running into the problem




    1.Import the TFlite and txt files


    2.copy the path if needle ( Xcode asks this )


    3.rename model_file_name to imported tflite model


    4.rename label_file_name to imported txt file


    Any other info / logs


    Loaded model 1resolved reportertensorflow/contrib/lite/kernels/squeeze.cc:64 current >= 0 && current < input_num_dims && input_dims->data[current] == 1 was not true.
    Node 66 failed to prepare.



    Failed to allocate tensors!2018-11-20 13:08:26.664470-0600 tflite_camera_example[9610:2085000] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
    2018-11-20 13:08:26.664721-0600 tflite_camera_example[9610:2085000] [MC] Reading from public effective user settings.



    Xcode Debugger output










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      System information




      OS Platform and Distribution: macOS Mojave 10.14.2 Beta


      Mobile device : iPhone 8P / IPhone XR


      TensorFlow installed from (source or binary): SOURCE


      TensorFlow version: Newest


      Python version: 3.7


      Installed using virtualenv? pip? conda?: Unknown


      Bazel version (if compiling from source): Unknown


      GCC/Compiler version (if compiling from source): Unknown


      CUDA/cuDNN version:


      GPU model and memory:


      Describe the problem


      Xcode Crashed when I import my models into the TF-Lite example project. I don't know what to do or try to get the models to work.



      Provide the exact sequence of commands / steps that you executed before running into the problem




      1.Import the TFlite and txt files


      2.copy the path if needle ( Xcode asks this )


      3.rename model_file_name to imported tflite model


      4.rename label_file_name to imported txt file


      Any other info / logs


      Loaded model 1resolved reportertensorflow/contrib/lite/kernels/squeeze.cc:64 current >= 0 && current < input_num_dims && input_dims->data[current] == 1 was not true.
      Node 66 failed to prepare.



      Failed to allocate tensors!2018-11-20 13:08:26.664470-0600 tflite_camera_example[9610:2085000] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
      2018-11-20 13:08:26.664721-0600 tflite_camera_example[9610:2085000] [MC] Reading from public effective user settings.



      Xcode Debugger output










      share|improve this question













      System information




      OS Platform and Distribution: macOS Mojave 10.14.2 Beta


      Mobile device : iPhone 8P / IPhone XR


      TensorFlow installed from (source or binary): SOURCE


      TensorFlow version: Newest


      Python version: 3.7


      Installed using virtualenv? pip? conda?: Unknown


      Bazel version (if compiling from source): Unknown


      GCC/Compiler version (if compiling from source): Unknown


      CUDA/cuDNN version:


      GPU model and memory:


      Describe the problem


      Xcode Crashed when I import my models into the TF-Lite example project. I don't know what to do or try to get the models to work.



      Provide the exact sequence of commands / steps that you executed before running into the problem




      1.Import the TFlite and txt files


      2.copy the path if needle ( Xcode asks this )


      3.rename model_file_name to imported tflite model


      4.rename label_file_name to imported txt file


      Any other info / logs


      Loaded model 1resolved reportertensorflow/contrib/lite/kernels/squeeze.cc:64 current >= 0 && current < input_num_dims && input_dims->data[current] == 1 was not true.
      Node 66 failed to prepare.



      Failed to allocate tensors!2018-11-20 13:08:26.664470-0600 tflite_camera_example[9610:2085000] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
      2018-11-20 13:08:26.664721-0600 tflite_camera_example[9610:2085000] [MC] Reading from public effective user settings.



      Xcode Debugger output







      python ios xcode tensorflow






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      Michael Stram

      41




      41





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53401636%2ftensorflow-demo-ios-app-with-different-models-not-working%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53401636%2ftensorflow-demo-ios-app-with-different-models-not-working%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Berounka

          Sphinx de Gizeh

          Different font size/position of beamer's navigation symbols template's content depending on regular/plain...