Comments (4)
Traceback (most recent call last): File "tools/train_net.py", line 229, in launch( File "/root/detrex/detectron2/detectron2/engine/launch.py", line 82, in launch main_func(*args) File "tools/train_net.py", line 224, in main do_train(args, cfg) File "tools/train_net.py", line 167, in do_train train_loader = instantiate(cfg.dataloader.train) File "/root/detrex/detectron2/detectron2/config/instantiate.py", line 67, in instantiate cfg = {k: instantiate(v) for k, v in cfg.items()} File "/root/detrex/detectron2/detectron2/config/instantiate.py", line 67, in cfg = {k: instantiate(v) for k, v in cfg.items()} File "/root/detrex/detectron2/detectron2/config/instantiate.py", line 83, in instantiate return cls(**cfg) File "/root/detrex/detectron2/detectron2/data/build.py", line 241, in get_detection_dataset_dicts dataset_dicts = [DatasetCatalog.get(dataset_name) for dataset_name in names] File "/root/detrex/detectron2/detectron2/data/build.py", line 241, in dataset_dicts = [DatasetCatalog.get(dataset_name) for dataset_name in names] File "/root/detrex/detectron2/detectron2/data/catalog.py", line 58, in get return f() File "/root/detrex/detectron2/detectron2/data/datasets/coco.py", line 500, in DatasetCatalog.register(name, lambda: load_coco_json(json_file, image_root, name)) File "/root/detrex/detectron2/detectron2/data/datasets/coco.py", line 80, in load_coco_json meta.thing_classes = thing_classes File "/root/detrex/detectron2/detectron2/data/catalog.py", line 148, in setattr assert oldval == val, ( AssertionError: Attribute 'thing_classes' in the metadata of 'coco_2017_train' cannot be set to a different value! ['person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 'train', 'truck', 'boat', 'traffic light', 'fire hydrant', 'stop sign', 'parking meter', 'bench', 'bird', 'cat', 'dog', 'horse', 'sheep', 'cow', 'elephant', 'bear', 'zebra', 'giraffe', 'backpack', 'umbrella', 'handbag', 'tie', 'suitcase', 'frisbee', 'skis', 'snowboard', 'sports ball', 'kite', 'baseball bat', 'baseball glove', 'skateboard', 'surfboard', 'tennis racket', 'bottle', 'wine glass', 'cup', 'fork', 'knife', 'spoon', 'bowl', 'banana', 'apple', 'sandwich', 'orange', 'broccoli', 'carrot', 'hot dog', 'pizza', 'donut', 'cake', 'chair', 'couch', 'potted plant', 'bed', 'dining table', 'toilet', 'tv', 'laptop', 'mouse', 'remote', 'keyboard', 'cell phone', 'microwave', 'oven', 'toaster', 'sink', 'refrigerator', 'book', 'clock', 'vase', 'scissors', 'teddy bear', 'hair drier', 'toothbrush'] != ['mouse', 'laptop', 'keyboard']
I was wondering if you're using detrex to train on your custom datasets~
from detrex.
Traceback (most recent call last): File "tools/train_net.py", line 229, in launch( File "/root/detrex/detectron2/detectron2/engine/launch.py", line 82, in launch main_func(*args) File "tools/train_net.py", line 224, in main do_train(args, cfg) File "tools/train_net.py", line 167, in do_train train_loader = instantiate(cfg.dataloader.train) File "/root/detrex/detectron2/detectron2/config/instantiate.py", line 67, in instantiate cfg = {k: instantiate(v) for k, v in cfg.items()} File "/root/detrex/detectron2/detectron2/config/instantiate.py", line 67, in cfg = {k: instantiate(v) for k, v in cfg.items()} File "/root/detrex/detectron2/detectron2/config/instantiate.py", line 83, in instantiate return cls(**cfg) File "/root/detrex/detectron2/detectron2/data/build.py", line 241, in get_detection_dataset_dicts dataset_dicts = [DatasetCatalog.get(dataset_name) for dataset_name in names] File "/root/detrex/detectron2/detectron2/data/build.py", line 241, in dataset_dicts = [DatasetCatalog.get(dataset_name) for dataset_name in names] File "/root/detrex/detectron2/detectron2/data/catalog.py", line 58, in get return f() File "/root/detrex/detectron2/detectron2/data/datasets/coco.py", line 500, in DatasetCatalog.register(name, lambda: load_coco_json(json_file, image_root, name)) File "/root/detrex/detectron2/detectron2/data/datasets/coco.py", line 80, in load_coco_json meta.thing_classes = thing_classes File "/root/detrex/detectron2/detectron2/data/catalog.py", line 148, in setattr assert oldval == val, ( AssertionError: Attribute 'thing_classes' in the metadata of 'coco_2017_train' cannot be set to a different value! ['person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 'train', 'truck', 'boat', 'traffic light', 'fire hydrant', 'stop sign', 'parking meter', 'bench', 'bird', 'cat', 'dog', 'horse', 'sheep', 'cow', 'elephant', 'bear', 'zebra', 'giraffe', 'backpack', 'umbrella', 'handbag', 'tie', 'suitcase', 'frisbee', 'skis', 'snowboard', 'sports ball', 'kite', 'baseball bat', 'baseball glove', 'skateboard', 'surfboard', 'tennis racket', 'bottle', 'wine glass', 'cup', 'fork', 'knife', 'spoon', 'bowl', 'banana', 'apple', 'sandwich', 'orange', 'broccoli', 'carrot', 'hot dog', 'pizza', 'donut', 'cake', 'chair', 'couch', 'potted plant', 'bed', 'dining table', 'toilet', 'tv', 'laptop', 'mouse', 'remote', 'keyboard', 'cell phone', 'microwave', 'oven', 'toaster', 'sink', 'refrigerator', 'book', 'clock', 'vase', 'scissors', 'teddy bear', 'hair drier', 'toothbrush'] != ['mouse', 'laptop', 'keyboard']
I was wondering if you're using detrex to train on your custom datasets~
Yes, I am using detrex to train on my custom datasets.
from detrex.
@ChenWanger I'm trying to reproducing your problems now and try to solve it~
Maybe you can also refer to detectron2 custom datasets for more details about register your own datasets in d2.
from detrex.
I'm closing this issue~ feel free to reopen it if needed~
from detrex.
Related Issues (20)
- Why is the optimal result different each time during training? HOT 4
- Adding pre-trained models HOT 3
- A issues about slurm and hydra HOT 3
- 找不到相关配置文件 HOT 10
- 训练问题
- 请问训练的参数在哪个文件
- 关于训练轮次问题 HOT 34
- Is there a plan to support rt-detr? HOT 1
- 关于mixed_selection的问题 HOT 3
- The H deformable detr code may have some problems ! HOT 3
- does the detrex support sahi? HOT 1
- DINO Training with Swin-small HOT 3
- 推理图片框框很大
- 推理的图片类别序号如何改成类别名 HOT 1
- 关于two-stage topk_proposals的问题
- Pretrained model for dino swin maynot be correct HOT 2
- Installation with poetry HOT 2
- 推理类别框的颜色如何统一对应 HOT 4
- Two questions about denoising design, which might effect the performace
- Any plan to include DINOv here?
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 detrex.