Skip to content

question of [sh scripts/03d_cal_cf_weights.sh] #19

@yishuaidu

Description

@yishuaidu

=> loaded checkpoint 'output/models/logs/B0_K240BS32I1000E200_LR1e-4-wdl0.01_20230426-233306_20230728-070959/model_60.ckpt' (epoch 60)
USE CLASSES: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59]
LABEL MAP: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14, 15: 15, 16: 16, 17: 17, 18: 18, 19: 19, 20: 20, 21: 21, 22: 22, 23: 23, 24: 24, 25: 25, 26: 26, 27: 27, 28: 28, 29: 29, 30: 30, 31: 31, 32: 32, 33: 33, 34: 34, 35: 35, 36: 36, 37: 37, 38: 38, 39: 39, 40: 40, 41: 41, 42: 42, 43: 43, 44: 44, 45: 45, 46: 46, 47: 47, 48: 48, 49: 49, 50: 50, 51: 51, 52: 52, 53: 53, 54: 54, 55: 55, 56: 56, 57: 57, 58: 58, 59: 59}
data/imgs/BASIS_S80F50_FS16
USE CLASSES: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
LABEL MAP: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9}
Loading Data: 0%| | 0/10 [00:00<?, ?it/s]cal_cf_weight.py:82: UserWarning: This overload of nonzero is deprecated:
nonzero()
Consider using one of the following signatures instead:
nonzero(*, bool as_tuple) (Triggered internally at /opt/conda/conda-bld/pytorch_1607370172916/work/torch/csrc/utils/python_arg_parser.cpp:882.)
tmp_cls_set = (val_tot_tars == att[cls_idx]).nonzero()
Loading Data: 100%|█████████████████████████████████████████████████████████████████████| 10/10 [00:03<00:00, 2.69it/s]
Loading Data: 100%|█████████████████████████████████████████████████████████████████████| 60/60 [00:22<00:00, 2.67it/s]
Ref: 0%| | 0/60 [00:00<?, ?it/s, fps=0cal_cf_weight.py:144: UserWarning: Implicit dimension choice for softmax has been deprecated. Change the call to include dim=X as an argument.
ws_prob = torch.nn.functional.softmax(logits_i)
Ref: 100%|███████████████████████████████████████████████████████████████████████| 60/60 [00:05<00:00, 11.28it/s, fps=0]
Using 34.532347202301025
Segmentation fault (core dumped)

Why I get Segmentation fault (core dumped)? How to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions