Comments (6)
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.
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.
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.
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.
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.
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)
- Nan values on evaluation code HOT 1
- Parallel Local Boosting? HOT 1
- the color is different HOT 1
- Evaluate prediction depth on KITTI dataset using evaluatedataset.m HOT 2
- depth numerical array HOT 1
- GPU thresh hold for nvidia A100 ?? HOT 2
- RuntimeError: The size of tensor a (75) must match the size of tensor b (76) at non-singleton dimension 3 HOT 4
- Code section2 error HOT 5
- Temporal inconsistency on image sequences HOT 4
- Can we use this for video input? HOT 1
- Issue max res 720 * 1280 ? HOT 8
- How to speed up the inference? HOT 2
- License of output images HOT 2
- Feature Request: Run on CPU or MPS for Apple M1/M2 HOT 4
- Unable to download mergenet model weights HOT 2
- Bit depth and banding HOT 2
- Which one of MiDas, DPT and LeRes is better for monocular depth estimation and takes the shortest time? HOT 1
- What's the parameter to be set in demo.py for "(NEW!) Now you can set the maximum resolution of the results to reduce runtime" HOT 1
- Why does NAN appear in the model inference process HOT 2
- Depth map by LeRes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boostingmonoculardepth.