Coder Social home page Coder Social logo

Comments (6)

WorldofDepth avatar WorldofDepth commented on August 16, 2024 3

OK, thank you!

By the way, I have found a hidden file—actually a hidden folder? When I upload a test file to the inputs folder and run the command !ls /content/inputs -al, it shows, for example:

total 640
drwxr-xr-x 3 root root   4096 Jul 30 20:02 .
drwxr-xr-x 1 root root   4096 Jul 30 20:01 ..
drwxr-xr-x 2 root root   4096 Jul 30 20:02 .ipynb_checkpoints
-rw-r--r-- 1 root root 641643 Jul 30 20:02 t6.jpg

Before uploading, the same command shows the folder empty.

If I run !rmdir /content/inputs/.ipynb_checkpoints to remove this hidden folder, then the programs run without error.

from boostingmonoculardepth.

miangoleh avatar miangoleh commented on August 16, 2024 1

I will try to handle it within code implementation of reading image files to make sure the existence of non-image files inside the input folder will not result in an error.

Thanks

from boostingmonoculardepth.

miangoleh avatar miangoleh commented on August 16, 2024

This seems to happen in case the input directory is empty or there is an unsupported file inside it. Make sure to put the images in the correct location and that there is not extra file present in the input folder.

from boostingmonoculardepth.

WorldofDepth avatar WorldofDepth commented on August 16, 2024

Thank you…I have been using JPG files, and always check the folder contents. Unless there is a hidden file generated by the code or the upload process, I don't see anything else. I don't know if there's an option to display .hidden files in Colab.

from boostingmonoculardepth.

patatattak avatar patatattak commented on August 16, 2024

Hello,

I get the same error, always on the second file i upload on Colab. It's definitely a problem with hidden files.

The following change seems to correct it :

In utils.py, line 209 (function init of ImageDataSet class), replace this line :
self.files = sorted(os.listdir(self.rgb_image_dir))
by this line :
self.files = sorted([f for f in os.listdir(self.rgb_image_dir) if f.endswith('.png')])

(or .jpg if you use jpeg files)

from boostingmonoculardepth.

SlimeVRX avatar SlimeVRX commented on August 16, 2024

Hello,

I get the same error, always on the second file i upload on Colab. It's definitely a problem with hidden files.

The following change seems to correct it :

In utils.py, line 209 (function init of ImageDataSet class), replace this line : self.files = sorted(os.listdir(self.rgb_image_dir)) by this line : self.files = sorted([f for f in os.listdir(self.rgb_image_dir) if f.endswith('.png')])

(or .jpg if you use jpeg files)

Thank! This helped me to solve the problem in Colab

from boostingmonoculardepth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.