Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'size' #156

Open
DingLing113 opened this issue Jan 8, 2024 · 2 comments
Open

AttributeError: 'NoneType' object has no attribute 'size' #156

DingLing113 opened this issue Jan 8, 2024 · 2 comments

Comments

@DingLing113
Copy link

DingLing113 commented Jan 8, 2024

微信截图_20240108220204
使用custom_data数据集进行eval,config如下所示
MODEL:
ATSS:
NUM_CLASSES: 7 # these fields are not used; just a placeholder
FCOS:
NUM_CLASSES: 7
ROI_BOX_HEAD:
NUM_CLASSES: 7
DYHEAD:
NUM_CLASSES: 7
DATASETS:
REGISTER:
coco_train:
img_dir: "custom_data/train"
ann_file: "custom_data/annotations/train_COCO.json"
coco_val:
img_dir: "custom_data/val"
ann_file: "custom_data/annotations/val_COCO.json"
TRAIN: ("coco_train",)
TEST: ("coco_val",)

INPUT:
MIN_SIZE_TRAIN: 800
MAX_SIZE_TRAIN: 1333
MIN_SIZE_TEST: 800
MAX_SIZE_TEST: 1333
DATALOADER:
SIZE_DIVISIBILITY: 32
ASPECT_RATIO_GROUPING: False
TEST:
IMS_PER_BATCH: 8

执行命令为 python tools/test_grounding_net.py
--config-file configs/pretrain/glip_Swin_T_O365_GoldG.yaml
--task_config configs/coco/custom_data.yaml
--weight MODEL/glip_tiny_model_o365_goldg_cc_sbu.pth
TEST.IMS_PER_BATCH 1
MODEL.DYHEAD.SCORE_AGG "MEAN"
TEST.EVAL_TASK detection
MODEL.DYHEAD.FUSE_CONFIG.MLM_LOSS False
OUTPUT_DIR /root/DL/GLIP/OUTPUT/evl_custom
请问是哪里报错?数据为手动标注的coco格式
image
image

@425her0
Copy link

425her0 commented Jan 15, 2024

数据集位置不对,建议重新检查一下。

@DingLing113
Copy link
Author

数据集位置不对,建议重新检查一下。

我上传了数据位置截图,请问是哪里不对
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants