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

段错误 (核心已转储) #1305

Open
SunNoJJ opened this issue Sep 11, 2024 · 1 comment
Open

段错误 (核心已转储) #1305

SunNoJJ opened this issue Sep 11, 2024 · 1 comment

Comments

@SunNoJJ
Copy link

SunNoJJ commented Sep 11, 2024

ted since 0.13 and may be removed in the future, please use 'weights' instead.
warnings.warn(
/sdb2/Software/andconda3Install/envs/molannotator/lib/python3.11/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or None for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing weights=ResNet50_Weights.IMAGENET1K_V1. You can also use weights=ResNet50_Weights.DEFAULT to get the most up-to-date weights.
warnings.warn(msg)
/sdb2/Software/andconda3Install/envs/molannotator/lib/python3.11/site-packages/torch/functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /opt/conda/conda-bld/pytorch_1682343970094/work/aten/src/ATen/native/TensorShape.cpp:3483.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
/sdb2/Software/andconda3Install/envs/molannotator/lib/python3.11/site-packages/torch/utils/checkpoint.py:31: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
warnings.warn("None of the inputs have requires_grad=True. Gradients will be None")
段错误 (核心已转储)

@SunNoJJ
Copy link
Author

SunNoJJ commented Sep 11, 2024

需要将:
/sdb2/Software/andconda3Install/envs/molannotator/lib/python3.11/site-packages/easyocr/craft_utils.py
31行connectivity=4改为connectivity=8
nLabels, labels, stats, centroids = cv2.connectedComponentsWithStats(text_score_comb.astype(np.uint8), connectivity=8)

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

1 participant