Semantic-Segment-Anything icon indicating copy to clipboard operation
Semantic-Segment-Anything copied to clipboard

Can't find model 'en_core_web_sm'

Open fengsky401 opened this issue 2 years ago • 2 comments

python scripts/main.py --data=image_20230408/ --out_dir output --world_size=1 --save_img Traceback (most recent call last): File "scripts/main.py", line 4, in from pipeline import semantic_annotation_pipeline File "/data2/queenie_2023/Semantic-Segment-Anything/scripts/pipeline.py", line 13, in from blip import open_vocabulary_classification_blip File "/data2/queenie_2023/Semantic-Segment-Anything/scripts/blip.py", line 3, in from utils import get_noun_phrases File "/data2/queenie_2023/Semantic-Segment-Anything/scripts/utils.py", line 2, in nlp = spacy.load('en_core_web_sm') File "/data2/queenie/anaconda3/envs/mmTrans/lib/python3.7/site-packages/spacy/init.py", line 60, in load config=config, File "/data2/queenie/anaconda3/envs/mmTrans/lib/python3.7/site-packages/spacy/util.py", line 449, in load_model raise IOError(Errors.E050.format(name=name)) OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a Python package or a valid path to a data directory.

fengsky401 avatar Apr 13 '23 01:04 fengsky401

You can try the command python -m spacy download en_core_web_sm

Divyansh-0 avatar Apr 13 '23 18:04 Divyansh-0

Please refer to the Installation section and run python -m spacy download en_core_web_sm.

lzrobots avatar Apr 14 '23 08:04 lzrobots