Problem with retrain.py. Getting error tensorflow.python.framework.errors_impl.NotFoundError











up vote
1
down vote

favorite












I'm using retrain.py to retrain an object detector on photos of my hand (to detect how many fingers I'm holding). On the Tensorflow site, I followed the tutorial where I retrained it on their images of flowers. So I wrote python retrain.py --image_dir ~/flower_photos and it worked. I had my hand_photos directory which contained sub-directories of me holding various fingers up. However I received this error:



tensorflow.python.framework.errors_impl.NotFoundError: /Users/spencerkraisler/hand_photos/untitled folder; No such file or directory


I don't understand why it's looking for some untitled folder in my hand_photosdirectory, nor why it works find on flower_photos.



I am using the current tensor flow and python 3.6. I am in an anaconda environment however this works just fine with flower_photos.



Furthermore, flower_photos just contains sub-directories of photos of various flowers, all .jpg. My photos are also in .jpg format.










share|improve this question




























    up vote
    1
    down vote

    favorite












    I'm using retrain.py to retrain an object detector on photos of my hand (to detect how many fingers I'm holding). On the Tensorflow site, I followed the tutorial where I retrained it on their images of flowers. So I wrote python retrain.py --image_dir ~/flower_photos and it worked. I had my hand_photos directory which contained sub-directories of me holding various fingers up. However I received this error:



    tensorflow.python.framework.errors_impl.NotFoundError: /Users/spencerkraisler/hand_photos/untitled folder; No such file or directory


    I don't understand why it's looking for some untitled folder in my hand_photosdirectory, nor why it works find on flower_photos.



    I am using the current tensor flow and python 3.6. I am in an anaconda environment however this works just fine with flower_photos.



    Furthermore, flower_photos just contains sub-directories of photos of various flowers, all .jpg. My photos are also in .jpg format.










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm using retrain.py to retrain an object detector on photos of my hand (to detect how many fingers I'm holding). On the Tensorflow site, I followed the tutorial where I retrained it on their images of flowers. So I wrote python retrain.py --image_dir ~/flower_photos and it worked. I had my hand_photos directory which contained sub-directories of me holding various fingers up. However I received this error:



      tensorflow.python.framework.errors_impl.NotFoundError: /Users/spencerkraisler/hand_photos/untitled folder; No such file or directory


      I don't understand why it's looking for some untitled folder in my hand_photosdirectory, nor why it works find on flower_photos.



      I am using the current tensor flow and python 3.6. I am in an anaconda environment however this works just fine with flower_photos.



      Furthermore, flower_photos just contains sub-directories of photos of various flowers, all .jpg. My photos are also in .jpg format.










      share|improve this question















      I'm using retrain.py to retrain an object detector on photos of my hand (to detect how many fingers I'm holding). On the Tensorflow site, I followed the tutorial where I retrained it on their images of flowers. So I wrote python retrain.py --image_dir ~/flower_photos and it worked. I had my hand_photos directory which contained sub-directories of me holding various fingers up. However I received this error:



      tensorflow.python.framework.errors_impl.NotFoundError: /Users/spencerkraisler/hand_photos/untitled folder; No such file or directory


      I don't understand why it's looking for some untitled folder in my hand_photosdirectory, nor why it works find on flower_photos.



      I am using the current tensor flow and python 3.6. I am in an anaconda environment however this works just fine with flower_photos.



      Furthermore, flower_photos just contains sub-directories of photos of various flowers, all .jpg. My photos are also in .jpg format.







      python tensorflow machine-learning conv-neural-network






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 11 at 7:19









      Rishav

      1,7791332




      1,7791332










      asked Nov 11 at 5:19









      Spencer Kraisler

      61




      61
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Well problem solved. I actually had an empty directory named "untitled folder" in my training data. I must've created it by accident. Case closed.






          share|improve this answer





















            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%2f53246056%2fproblem-with-retrain-py-getting-error-tensorflow-python-framework-errors-impl-n%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Well problem solved. I actually had an empty directory named "untitled folder" in my training data. I must've created it by accident. Case closed.






            share|improve this answer

























              up vote
              0
              down vote













              Well problem solved. I actually had an empty directory named "untitled folder" in my training data. I must've created it by accident. Case closed.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Well problem solved. I actually had an empty directory named "untitled folder" in my training data. I must've created it by accident. Case closed.






                share|improve this answer












                Well problem solved. I actually had an empty directory named "untitled folder" in my training data. I must've created it by accident. Case closed.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 11 at 5:29









                Spencer Kraisler

                61




                61






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246056%2fproblem-with-retrain-py-getting-error-tensorflow-python-framework-errors-impl-n%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

                    Xamarin.iOS Cant Deploy on Iphone

                    Glorious Revolution

                    Dulmage-Mendelsohn matrix decomposition in Python