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

Code doesn't work #39

Open
purijs opened this issue Oct 24, 2021 · 0 comments
Open

Code doesn't work #39

purijs opened this issue Oct 24, 2021 · 0 comments

Comments

@purijs
Copy link

purijs commented Oct 24, 2021

It always fails at UnboundLocalError: local variable 'data_path' referenced before assignment

(base) D:\digisat\DSen2\testing>python .\s2_tiles_supres.py D:\digisat\S2B_MSIL1C_20211021T052849_N0301_R105_T43RGM_20211021T072442.zip --clip_to_aoi "100,100,2000,2000"
2021-10-24 15:59:33.631479: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-10-24 15:59:34.981411: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1510] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 2149 MB memory:  -> device: 0, name: NVIDIA GeForce GTX 1650, pci bus id: 0000:01:00.0, compute capability: 7.5
Traceback (most recent call last):
  File ".\s2_tiles_supres.py", line 213, in <module>
    args.data_file_path, args.clip_to_aoi, args.copy_original_bands, args.output_dir
  File ".\s2_tiles_supres.py", line 178, in process
    data10, data20, data60, coord, pr_10m = self.start()
  File ".\s2_tiles_supres.py", line 73, in start
    data_list = self.get_data()
  File "..\utils\data_utils.py", line 65, in get_data
    LOGGER.info(f"Data path is {data_path}")
UnboundLocalError: local variable 'data_path' 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