Skip to content

Commit

Permalink
Merge pull request #6 from Dobiasd/main
Browse files Browse the repository at this point in the history
Change model_type to base_model in docs
  • Loading branch information
mantasu authored Nov 21, 2023
2 parents 3ce29d2 + f2ce33b commit d47065a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ You can import the package and its models via the python script for more flexibi
```python
from glasses_detector import SunglassesClassifier

classifier = SunglassesClassifier(model_type="small", pretrained=True).eval()
classifier = SunglassesClassifier(base_model="small", pretrained=True).eval()

classifier.predict(
input_path="path/to/dir",
Expand All @@ -179,8 +179,8 @@ Using a segmenter is similar, here is an example of using a sunglasses segmentat
```python
from glasses_detector import FullSunglassesSegmenter

# model_type can also be a tuple: (classifier size, base glasses segmenter size)
segmenter = FullSunglassesSegmenter(model_type="small", pretrained=True).eval()
# base_model can also be a tuple: (classifier size, base glasses segmenter size)
segmenter = FullSunglassesSegmenter(base_model="small", pretrained=True).eval()

segmenter.predict(
input_path="path/to/dir",
Expand Down
6 changes: 3 additions & 3 deletions docs/content/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You can import the package and its models via the python script for more flexibi
from glasses_detector import SunglassesClassifier
classifier = SunglassesClassifier(model_type="small", pretrained=True).eval()
classifier = SunglassesClassifier(base_model="small", pretrained=True).eval()
classifier.predict(
input_path="path/to/dir",
Expand All @@ -50,8 +50,8 @@ Using a segmenter is similar, here is an example of using a sunglasses segmentat
from glasses_detector import FullSunglassesSegmenter
# model_type can also be a tuple: (classifier size, base glasses segmenter size)
segmenter = FullSunglassesSegmenter(model_type="small", pretrained=True).eval()
# base_model can also be a tuple: (classifier size, base glasses segmenter size)
segmenter = FullSunglassesSegmenter(base_model="small", pretrained=True).eval()
segmenter.predict(
input_path="path/to/dir",
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
```python
from glasses_detector import SunglassesClassifier
classifier = SunglassesClassifier(model_type="small", pretrained=True).eval()
classifier = SunglassesClassifier(base_model="small", pretrained=True).eval()
classifier.predict(
input_path="path/to/dir",
Expand All @@ -164,8 +164,8 @@
```python
from glasses_detector import FullSunglassesSegmenter
# model_type can also be a tuple: (classifier size, base glasses segmenter size)
segmenter = FullSunglassesSegmenter(model_type="small", pretrained=True).eval()
# base_model can also be a tuple: (classifier size, base glasses segmenter size)
segmenter = FullSunglassesSegmenter(base_model="small", pretrained=True).eval()
segmenter.predict(
input_path="path/to/dir",
Expand Down

0 comments on commit d47065a

Please sign in to comment.