facebookresearch / facebookresearch/sam3
Error when using transformers==5.3.0.dev0 to SAM-3 inference.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 11.7k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Hello. I use the following command to install *transformers* and inference the SAM-3 model under the guidance of https://huggingface.co/facebook/sam3.
```
pip install git+https://github.com/huggingface/transformers
```
However, I meet the following problem:
```
File "/opt/conda/envs/sam3/lib/python3.12/site-packages/huggingface_hub/dataclasses.py", line 150, in __strict_setattr__
raise StrictDataclassFieldValidationError(field=name, cause=e) from e
huggingface_hub.errors.StrictDataclassFieldValidationError: Validation error for field 'initializer_range':
TypeError: Field 'initializer_range' expected int, got float (value: 0.02)
```
Thank you.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the documented `pip install git+https://github.com/huggingface/transformers` command and the SAM-3 inference guidance. Read the reported `huggingface_hub/dataclasses.py` validation error and trace the `initializer_range` configuration source; done means SAM-3 inference starts without the strict dataclass validation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100