Open hm123450 opened 9 months ago
嗨:我有一个大约十秒钟长的视频文件。使用 ffmpeg 拆分它后,我正在尝试使用 convert.py,但我不断收到与文件路径相关的错误。我想问一下是否有人可以帮助我解决这个问题。谢谢。
python convert.py -s data/
E0222 12:08:50.144686 1326795 logging.cc:56] [option_manager.cc:813] Check failed: ExistsDir(*image_path)
E0222 12:08:50.144773 1326795 option_manager.cc:879] Invalid options provided.
ERROR:root:Feature extraction failed with code 256. Exiting.
Here is my fail information.
嗨:我有一个大约十秒钟长的视频文件。使用 ffmpeg 拆分它后,我正在尝试使用 convert.py,但我不断收到与文件路径相关的错误。我想问一下是否有人可以帮助我解决这个问题。谢谢。
python convert.py -s data/ E0222 12:08:50.144686 1326795 logging.cc:56] [option_manager.cc:813] Check failed: ExistsDir(*image_path) E0222 12:08:50.144773 1326795 option_manager.cc:879] Invalid options provided. ERROR:root:Feature extraction failed with code 256. Exiting.
Here is my fail information.
My file structure :
data -----input.mp4 -----input -----------input_0001.ipg -----------input_0002.jpg -----------etc
try to modify the command to:python convert.py -s data/input
*EDIT*** and answer myself. I did move the db file and the original sparce folder inside the distorted folder created by the script and It works now.
I have a similar problem. Any light about will be appreciated. My database was generated on OpenCV format (3840x2160) from a gopro camera. The distorted folder is generated by the script but it is empty
-MainFolder ---distorted ----sparce -----(Empty)
---image ----frame_00001.jpg (and so on sequence)
---images_2
....images_4
---images_8
---sparse ----database.db ----0 -----cameras.bin -----images.bin -----points3D.bin -----project.ini
$ python convert.py -s (path to MainFolder) [option_manager.cc:811] Check failed: ExistsDir(*image_path) ERROR: Invalid options provided. ERROR:root:Feature extraction failed with code 256. Exiting.
嗨:我有一个大约十秒钟长的视频文件。使用 ffmpeg 拆分它后,我正在尝试使用 convert.py,但我不断收到与文件路径相关的错误。我想问一下是否有人可以帮助我解决这个问题。谢谢。
python convert.py -s data/ E0222 12:08:50.144686 1326795 logging.cc:56] [option_manager.cc:813] Check failed: ExistsDir(*image_path) E0222 12:08:50.144773 1326795 option_manager.cc:879] Invalid options provided. ERROR:root:Feature extraction failed with code 256. Exiting.
Here is my fail information.
My file structure :
data -----input.mp4 -----input -----------input_0001.ipg -----------input_0002.jpg -----------etc
I had the same error with you firstly. And then I read this part. I think you can delete the input.mp4 file.
The error is most likely because it cannot find a directory called input
You can fill in the upper-level folder name of the input folder. For example, if your picture is in data/input
, you only need to use python convert.py -s data
这里文件夹的名字只能设置为input,我也是无意间看到的,改成input之后就可以运行了
The name of the folder here can only be set to input, I also overlooked it, and after changing it to input, it works!
I solved it by using this very specific structure (you have to rename your own dataset to data, then the subfolder to input):
data |input |____image1.png |image2.png |etc
then running the convert.py with: python convert.py -s path/to/data
then the script will create some new directories under data, and it will look like this: data |input |____image1.png |image2.png |etc |images |____image1.png |image2.png |etc |sparse |__0 |__camera.bin |__images.bin |__points3D.bin |stereo |__consistency_graphs (empty) |__depth_maps (empty) |__normal_maps (empty) |__fusion.cfg |__path_match.cfg |distorted |____sparse |__0 |camera.bin |images.bin |points3D.bin |project.ini |___database_db |_ run-colmap-geometricsh | run-colmap-photometric_sh
I solved it by using this very specific structure (you have to rename your own dataset to data, then the subfolder to input):
data |input |____image1.png |image2.png |etc
then running the convert.py with: python convert.py -s path/to/data
then the script will create some new directories under data, and it will look like this: data |input |____image1.png |image2.png |etc |images |____image1.png |image2.png |etc |sparse |__0 |__camera.bin |__images.bin |__points3D.bin |stereo |__consistency_graphs (empty) |__depth_maps (empty) |__normal_maps (empty) |__fusion.cfg |__path_match.cfg |distorted |____sparse |__0 |camera.bin |images.bin |points3D.bin |project.ini |_**database_db |_ run-colmap-geometricsh |** run-colmap-photometric_sh
it works!thanks!
I solved it by using this very specific structure (you have to rename your own dataset to data, then the subfolder to input):
data |input |____image1.png |image2.png |etc
then running the convert.py with: python convert.py -s path/to/data
then the script will create some new directories under data, and it will look like this: data |input |____image1.png |image2.png |etc |images |____image1.png |image2.png |etc |sparse |__0 |__camera.bin |__images.bin |__points3D.bin |stereo |__consistency_graphs (empty) |__depth_maps (empty) |__normal_maps (empty) |__fusion.cfg |__path_match.cfg |distorted |____sparse |__0 |camera.bin |images.bin |points3D.bin |project.ini |_**database_db |_ run-colmap-geometricsh |** run-colmap-photometric_sh
It works for the latest version on Windows 11! Must put images in data/input
. Thanks!
Hi: I have a video file that is about ten seconds long. After splitting it using ffmpeg, I'm trying to use convert.py, but I keep getting errors related to the file path. I would like to ask if someone could help me with this issue. Thank you very much.