顾铭翔
顾铭翔
> > requests.exceptions.ConnectionError: (ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')), '(Request ID: ea7dea4f-6b82-401c-84a6-3d970e2416ba)') > > It may be that your network is not stable when connecting to Huggingface, you can...
```python ef get_pretrained_language_model(text_encoder_type): if text_encoder_type == "bert-base-uncased": return BertTokenizer.from_pretrained('bert-base-uncased', local_files_only=True) # PATH is your local file path # return BertModel.from_pretrained(text_encoder_type) ``` is that right?
File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/grounded_sam_demo.py", line 181, in model = load_model(config_file, grounded_checkpoint, device=device) File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/grounded_sam_demo.py", line 46, in load_model model = build_model(args) File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/__init__.py", line 17, in build_model model = build_func(args) File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/groundingdino.py",...
/home/evsjtu2/miniconda3/envs/gmx-sam/lib/python3.9/site-packages/torch/functional.py:478: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /opt/conda/conda-bld/pytorch_1659484809662/work/aten/src/ATen/native/TensorShape.cpp:2894.) return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined] final text_encoder_type: bert-base-uncased Traceback...
I have already solved this problem. Thank you for your help!
> > I have already solved this problem. Thank you for your help! > > hello, same question we meet, could you share your step-by-step solution for us to solve...