johnomeara commited on
Commit
1078bcd
·
verified ·
1 Parent(s): 3cdeabf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -0
README.md CHANGED
@@ -54,6 +54,19 @@ print(coordinates)
54
  ![Example of Curb Ramp Points](https://i.postimg.cc/66fQm4m5/labeled.png)
55
 
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  Citation:
58
 
59
  ```bibtex
 
54
  ![Example of Curb Ramp Points](https://i.postimg.cc/66fQm4m5/labeled.png)
55
 
56
 
57
+ If you get an error like this (see below), then you need to update your transformers library version.
58
+ ```
59
+ >>> model = AutoModel.from_pretrained("projectsidewalk/rampnet-model", trust_remote_code=True)
60
+ Traceback (most recent call last):
61
+ File "<stdin>", line 1, in <module>
62
+ File "/gscratch/scrubbed/jsomeara/envs/sidewalk-validator-ai/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 558, in from_pretrained
63
+ model_class = add_generation_mixin_to_remote_model(model_class)
64
+ File "/gscratch/scrubbed/jsomeara/envs/sidewalk-validator-ai/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 726, in add_generation_mixin_to_remote_model
65
+ has_custom_generate = "GenerationMixin" not in str(getattr(model_class, "generate"))
66
+ AttributeError: type object 'KeypointModel' has no attribute 'generate'
67
+ >>>
68
+ ```
69
+
70
  Citation:
71
 
72
  ```bibtex