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

UnboundLocalError: local variable 'vh' referenced before assignment #13

Open
fanzz1208 opened this issue Jun 5, 2024 · 0 comments
Open

Comments

@fanzz1208
Copy link

CUDA_VISIBLE_DEVICES=3 python satellite_sfm.py --input_folder /workspace/SatelliteSfM/inputs --output_folder /workspace/SatelliteSfM/outputs --run_sfm

Traceback (most recent call last): File "satellite_sfm.py", line 31, in <module> preprocess_image_set(args.output_folder, os.path.join(args.input_folder, 'images'), File "/workspace/SatelliteSfM/preprocess/preprocess_image_set.py", line 119, in preprocess_image_set _preprocess_single_tif(args_it) File "/workspace/SatelliteSfM/preprocess/preprocess_image_set.py", line 58, in _preprocess_single_tif K, W2C = approximate_rpc_locally(meta_dict, lat_minmax, lon_minmax, alt_minmax, File "/workspace/SatelliteSfM/preprocess/approximate_rpc_locally.py", line 82, in approximate_rpc_locally P = _solve_projection_matrix(e, n, u, col, row) File "/workspace/SatelliteSfM/preprocess/approximate_rpc_locally.py", line 55, in _solve_projection_matrix P = np.real(vh[11, :]).reshape((3, 4)) UnboundLocalError: local variable 'vh' referenced before assignment

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

1 participant