Code Monkey home page Code Monkey logo

Comments (6)

rayguan97 avatar rayguan97 commented on September 27, 2024

Please refer to this section: https://github.com/rayguan97/GANav-offroad#dataset-processing.
You can find the processing script under "./tools/convert_datasets" dir.

from ganav-offroad.

linchangyi1 avatar linchangyi1 commented on September 27, 2024

Hi, thank you for your opensource.
Several days ago, I used your source code and successfully run the train.py file. However, without any change of the code, I can't run it again and meet these error. So I installed your source again and also try on other computers, even transport your file to new mmsegmentation framwork, but still met the same error. I suppose the errors come from the change of mmcv. But I really don't know how to modify the code. Could you please tell me how to modify it. The errors are(I am sure I put the RUGD data in the right place):

"""
Traceback (most recent call last):
File "/home/changyilin/lib/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/utils/registry.py", line 52, in build_from_cfg
return obj_cls(**args)
File "/home/changyilin/Final_Project/SSDMUE/mmsegmentation/mmseg/datasets/rugd.py", line 61, in init
**kwargs)
File "/home/changyilin/Final_Project/SSDMUE/mmsegmentation/mmseg/datasets/custom.py", line 124, in init
self.seg_map_suffix, self.split)
File "/home/changyilin/Final_Project/SSDMUE/mmsegmentation/mmseg/datasets/custom.py", line 149, in load_annotations
with open(split) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/rugd/train_ours.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/changyilin/Final_Project/SSDMUE/mmsegmentation/tools/train.py", line 172, in
main()
File "/home/changyilin/Final_Project/SSDMUE/mmsegmentation/tools/train.py", line 145, in main
datasets = [build_dataset(cfg.data.train)]
File "/home/changyilin/Final_Project/SSDMUE/mmsegmentation/mmseg/datasets/builder.py", line 83, in build_dataset
dataset = build_from_cfg(cfg, DATASETS, default_args)
File "/home/changyilin/lib/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/utils/registry.py", line 55, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
FileNotFoundError: UnstructureDataset: [Errno 2] No such file or directory: 'data/rugd/train_ours.txt'
"""

from ganav-offroad.

rayguan97 avatar rayguan97 commented on September 27, 2024

This is strange -- have you made sure that "data/rugd/train_ours.txt" exists?

from ganav-offroad.

linchangyi1 avatar linchangyi1 commented on September 27, 2024

Yes, I put them in the right place and ran it successfully once but failed days later.
image

Besides, I also tried other methods:

  1. I changed the data_root from a relative root to an absolute one, meaning
    from data_root = 'data/rugd' to data_root = '/home/linchangyi/Final_Project/SSDMUE/mmsegmentation/data/rugd'
    but still met error: No such file or directory: '/home/linchangyi/Final_Project/SSDMUE/mmsegmentation/data/rugd/train_ours.txt'

  2. I chose not to use split but directly change the img_dir and ann_dir to the specify one, and deleted split="train_ours.txt",
    like:
    image
    but still met error: No such file or directory: 'data/rugd/creek'

  3. I installed your code in other computers from one step to one, but still met the error like the first one.

from ganav-offroad.

rayguan97 avatar rayguan97 commented on September 27, 2024

This is really strange. I just made a fresh git clone and it seems that it's working properly for me.

There are a couple of suggestions:

  1. Have you make sure that the directory is not empty here, or the file indeed exists -- "home/linchangyi/Final_Project/SSDMUE/mmsegmentation/data/rugd/train_ours.txt"? This error seems quite straight forward -- the code could not find this file.
  2. It's possible that the mmseg is messed up in the environment. Have you tried using conda env and tried creating a fresh env for GANav? Previously when I put different versions of my code in different places, I have to run "pip install -e ." to make sure that it's using the repo I intend to.
  3. Have you made sure that you pulled the latest version of the code?

from ganav-offroad.

linchangyi1 avatar linchangyi1 commented on September 27, 2024

Thanks for your trying and suggestions.
I will try it again in new environment.

from ganav-offroad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.