Comments (6)
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.
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.
This is strange -- have you made sure that "data/rugd/train_ours.txt" exists?
from ganav-offroad.
Yes, I put them in the right place and ran it successfully once but failed days later.
Besides, I also tried other methods:
-
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' -
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:
but still met error: No such file or directory: 'data/rugd/creek' -
I installed your code in other computers from one step to one, but still met the error like the first one.
from ganav-offroad.
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:
- 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.
- 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.
- Have you made sure that you pulled the latest version of the code?
from ganav-offroad.
Thanks for your trying and suggestions.
I will try it again in new environment.
from ganav-offroad.
Related Issues (20)
- Check point file HOT 10
- about the training loss become nan HOT 6
- Pre-processing images HOT 2
- AssertionError HOT 8
- Enquiry regarding Performance of Training HOT 14
- Error in ONNX conversion HOT 10
- how to get segmentation cost map from segmentation results? HOT 1
- Conversion of RUGD and Rellis Datasets To Rugd6 Group & Training HOT 4
- Is the onnx file generated by pytorch2onnx.py quantized? HOT 1
- Welcome update to OpenMMLab 2.0 HOT 1
- Use pretrained ResNet50 model (backbone) on ImageNet.
- L1? L2? L3? HOT 2
- checkpoint error HOT 4
- Output image of the model HOT 5
- ModuleNotFoundError: No module named 'mmcv._ext' HOT 4
- Change of backbone HOT 2
- Training on GOOSE Dataset HOT 3
- rellis folder structure
- output quality HOT 2
- User Guide / Usage HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ganav-offroad.