Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError on running imgs2poses.py #71

Open
Wasp3r opened this issue Jun 7, 2022 · 2 comments
Open

FileNotFoundError on running imgs2poses.py #71

Wasp3r opened this issue Jun 7, 2022 · 2 comments

Comments

@Wasp3r
Copy link

Wasp3r commented Jun 7, 2022

Hello everyone,

I have a problem to perform img2poses.py. It's throwing exception as below. I'm trying it on windows using anaconda. Strange this is, I've managed to check and run problematic command alone and it worked. The command is:

colmap feature_extractor --database_path demo\database.db --image_path demo\images --ImageReader.single_camera 1

Error message

Traceback (most recent call last):
  File "D:\nvdiffrec\LLFF-master\imgs2poses.py", line 18, in <module>
    gen_poses(args.scenedir, args.match_type)
  File "D:\nvdiffrec\LLFF-master\llff\poses\pose_utils.py", line 268, in gen_poses
    run_colmap(basedir, match_type)
  File "D:\nvdiffrec\LLFF-master\llff\poses\colmap_wrapper.py", line 35, in run_colmap
    feat_output = ( subprocess.check_output(feature_extractor_args, universal_newlines=True) )
  File "C:\Users\Admin\anaconda3\envs\llff\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\Admin\anaconda3\envs\llff\lib\subprocess.py", line 501, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\Admin\anaconda3\envs\llff\lib\subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Admin\anaconda3\envs\llff\lib\subprocess.py", line 1435, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
@mexicantexan
Copy link

Make sure you have colmap installed and added to your environment variables

https://github.com/colmap/colmap/releases/tag/3.7

@raying777
Copy link

Hello everyone,

I have a problem to perform img2poses.py. It's throwing exception as below. I'm trying it on windows using anaconda. Strange this is, I've managed to check and run problematic command alone and it worked. The command is:

colmap feature_extractor --database_path demo\database.db --image_path demo\images --ImageReader.single_camera 1

Error message

Traceback (most recent call last):
  File "D:\nvdiffrec\LLFF-master\imgs2poses.py", line 18, in <module>
    gen_poses(args.scenedir, args.match_type)
  File "D:\nvdiffrec\LLFF-master\llff\poses\pose_utils.py", line 268, in gen_poses
    run_colmap(basedir, match_type)
  File "D:\nvdiffrec\LLFF-master\llff\poses\colmap_wrapper.py", line 35, in run_colmap
    feat_output = ( subprocess.check_output(feature_extractor_args, universal_newlines=True) )
  File "C:\Users\Admin\anaconda3\envs\llff\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\Admin\anaconda3\envs\llff\lib\subprocess.py", line 501, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\Admin\anaconda3\envs\llff\lib\subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Admin\anaconda3\envs\llff\lib\subprocess.py", line 1435, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

Hello, I have the same problem. Can you tell me how you solved this problem. Thinks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants