GithubHelp home page GithubHelp logo

Train other datasets about universenet HOT 6 CLOSED

shinya7y avatar shinya7y commented on June 18, 2024
Train other datasets

from universenet.

Comments (6)

sure7018 avatar sure7018 commented on June 18, 2024

If I do not have the above modifications, an error will be reported:
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 5000/5000, 5.1 task/s, elapsed: 978s, ETA: 0s
Evaluating bbox...
Loading and preparing results...
The testing results of the whole dataset is empty.

from universenet.

shinya7y avatar shinya7y commented on June 18, 2024

Object instance annotations in COCO format should contain the area field.
Please modify your json files by calculating width * height to assign area.

the following errors

What do the errors mean?
Low AP and nan (loss: inf) may be caused by training instability (e.g., too high learning rate).

I recommend using simple detectors (e.g., retinanet_r50_fpn_1x_coco.py) to debug your dataset before trying recent detectors.
Especially, detectors not supported in the original mmdetection have not been verified by many users.

from universenet.

sure7018 avatar sure7018 commented on June 18, 2024

Hello, if the dataset I use is marked in Chinese, how can I modify the dataset to read Chinese text?

from universenet.

shinya7y avatar shinya7y commented on June 18, 2024

I haven't tried category names written in Chinese.
Are there any errors?

from universenet.

sure7018 avatar sure7018 commented on June 18, 2024

I just changed Chinese into English, and found or reported the same error, as shown below. Should it be the problem of my data set? What do you think?

2021-10-09 16:31:16,491 - mmdet - INFO - Saving checkpoint at 1 epochs
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 7320/7313, 65.4 task/s, elapsed: 112s, ETA: 0s

2021-10-09 16:37:00,650 - mmdet - INFO - Evaluating bbox...
Loading and preparing results...
DONE (t=0.52s)
creating index...
index created!
Running per image evaluation...
Evaluate annotation type bbox
Traceback (most recent call last):
File "tools/train.py", line 189, in
main()
File "tools/train.py", line 185, in main
meta=meta)
File "/root/lws/UniverseNet/mmdet/apis/train.py", line 212, in train_detector
runner.run(data_loaders, cfg.workflow)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 127, in run
epoch_runner(data_loaders[i], **kwargs)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 54, in train
self.call_hook('after_train_epoch')
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/base_runner.py", line 307, in call_hook
getattr(hook, fn_name)(self)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/hooks/evaluation.py", line 237, in after_train_epoch
self._do_evaluate(runner)
File "/root/lws/UniverseNet/mmdet/core/evaluation/eval_hooks.py", line 58, in _do_evaluate
key_score = self.evaluate(runner, results)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/hooks/evaluation.py", line 325, in evaluate
results, logger=runner.logger, **self.eval_kwargs)
File "/root/lws/UniverseNet/mmdet/datasets/coco.py", line 497, in evaluate
cocoEval.evaluate()
File "/opt/conda/lib/python3.7/site-packages/pycocotools/cocoeval.py", line 149, in evaluate
for imgId in p.imgIds
File "/opt/conda/lib/python3.7/site-packages/pycocotools/cocoeval.py", line 150, in
for catId in catIds}
File "/opt/conda/lib/python3.7/site-packages/pycocotools/cocoeval.py", line 188, in computeIoU
iscrowd = [int(o['iscrowd']) for o in gt]
File "/opt/conda/lib/python3.7/site-packages/pycocotools/cocoeval.py", line 188, in
iscrowd = [int(o['iscrowd']) for o in gt]
KeyError: 'iscrowd'
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/conda/lib/python3.7/site-packages/torch/distributed/launch.py", line 261, in
main()
File "/opt/conda/lib/python3.7/site-packages/torch/distributed/launch.py", line 257, in main
cmd=cmd)
subprocess.CalledProcessError: Command '['/opt/conda/bin/python', '-u', 'tools/train.py', '--local_rank=7', 'configs/faster_rcnn/faster_rcnn_r101_fpn_1x_coco.py', '--launcher', 'pytorch']' returned non-zero exit status 1.
root@worker02:~/lws/UniverseNet#

from universenet.

sure7018 avatar sure7018 commented on June 18, 2024

Thank you for your reply. I think I have found the error

from universenet.

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.