VIDA-NYU / tile2net

Automated mapping of pedestrian networks from aerial imagery tiles
BSD 3-Clause "New" or "Revised" License
146 stars 22 forks source link

eval_folder must be set #23

Closed xiaojianggis closed 1 year ago

xiaojianggis commented 1 year ago

I am running bash ./examples/example.sh, always get the error of, , line 535, in init raise ValueError('eval_folder must be set') ValueError: eval_folder must be set

dhodcz2 commented 1 year ago

Thank you for helping to improve tile2net. I was unable to replicate the problem on my side, but I have updated my branch with more logging and error handling. Could you please run:

git switch dhodcz2
git fetch

and then re-run example.sh, pasting here the full logger output and any traceback? Thanks.

Mary-h86 commented 1 year ago

@xiaojianggis Are you still having the same issue? Is it resolved? If you are still getting the same error, please send us the logger output that @dhodcz2 mentioned so we can assist you.

xiaojianggis commented 1 year ago

It works well on my machine now. Thank you. Regards

On Sun, Jun 18, 2023 at 4:37 PM Maryam Hosseini @.***> wrote:

@xiaojianggis https://github.com/xiaojianggis Are you still having the same issue? Is it resolved? If you are still getting the same error, please send us the logger output that @dhodcz2 https://github.com/dhodcz2 mentioned so we can assist you.

— Reply to this email directly, view it on GitHub https://github.com/VIDA-NYU/tile2net/issues/23#issuecomment-1596258348, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTHUGYBR5M74D7IMMDOUGLXL5RHLANCNFSM6AAAAAAZHF57LY . You are receiving this because you were mentioned.Message ID: @.***>

-- Xiaojiang Li Assistant Professor, Department of Geography and Urban Studies, Temple University http://www.urbanspatial.info/ https://sites.google.com/site/xiaojiangligis/home

Mary-h86 commented 1 year ago

@xiaojianggis Fantastic. Don’t forget to checkout to main, and do git pull every few weeks to keep up with the most recent changes. I am closing this issue since the problem is solved. Feel free to re-open if needed.

Jiayingpdf commented 1 year ago

Hi, I ran the model last week and it worked well, but I encounted the same issue this week. I tried the solution above but it didn't work for me @dhodcz2 . Followings are the logger output:

$ bash ./examples/example.sh Please enter the output directory: test Tile generation will now begin. ERROR Could not get coverage for la, skipping: HTTPSConnectionPool(host='cache.gis.lacounty.gov', port=443): Max retries exceeded with url: /cache/res t/services/LACounty_Cache/LACounty_Aerial_2014/MapServer?f=json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000292BF66 4100>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')) INFO Geocoding [42.3536483721, -71.0716891532, 42.3555518995, -71.0643742337], this may take awhile... Traceback (most recent call last): File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Jiaying\tile2net\src\tile2net__main.py", line 7, in argh.dispatch_commands([ File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\argh\dispatching.py", line 349, in dispatch_commands dispatch(parser, *args, **kwargs) File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\argh\dispatching.py", line 179, in dispatch for line in lines: File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\argh\dispatching.py", line 290, in _execute_command for line in result: File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\argh\dispatching.py", line 243, in _call result = function(namespace_obj) File "C:\Jiaying\tile2net\src\tile2net\raster\generate__init__.py", line 14, in generate raster = Raster.from_info(args.dict) File "C:\Jiaying\tile2net\src\tile2net\raster\raster.py", line 110, in from_info res = cls(**relevant) File "C:\Jiaying\tile2net\src\tile2net\raster\raster.py", line 218, in init source = Source[location] File "C:\Jiaying\tile2net\src\tile2net\raster\source.py", line 66, in getitem matches = matches.loc[loc] File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexing.py", line 1103, in getitem__ return self._getitem_axis(maybe_callable, axis=axis) File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexing.py", line 1325, in _getitem_axis return self._getbool_axis(key, axis=axis) File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexing.py", line 1121, in _getbool_axis key = check_bool_indexer(labels, key) File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexing.py", line 2525, in check_bool_indexer return check_array_indexer(index, result) File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexers\utils.py", line 541, in check_array_indexer raise IndexError( IndexError: Boolean index has wrong length: 7 instead of 6 DEBUG Inference unpiped Traceback (most recent call last): File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Jiaying\tile2net\src\tile2net__main.py", line 7, in argh.dispatch_commands([ File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\argh\dispatching.py", line 349, in dispatch_commands dispatch(parser, *args, kwargs) File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\argh\dispatching.py", line 179, in dispatch for line in lines: File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\argh\dispatching.py", line 290, in _execute_command for line in result: File "C:\Users\xue_j\AppData\Local\Programs\Python\Python310\lib\site-packages\argh\dispatching.py", line 243, in _call result = function(namespace_obj) File "C:\Jiaying\tile2net\src\tile2net\namespace.py", line 637, in wrapper namespace = cls(args.dict) File "C:\Jiaying\tile2net\src\tile2net\namespace.py", line 535, in init__ raise ValueError('eval_folder must be set') ValueError: eval_folder must be set

dhodcz2 commented 1 year ago

Thank you for your involvement. I have resolved the issue and it is now available on the main branch.