Skip to content

Commit

Permalink
bc - Image classifier example now includes OccupancyClassifier
Browse files Browse the repository at this point in the history
  • Loading branch information
bacetiner authored Apr 11, 2024
1 parent 5c5c86e commit ed1442f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/image_processor/brails_image_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
aerial_images.set_directory("./images/satellite", True)
street_images.set_directory("./images/street", True)

# Test importer and one of the aerial imagery classifiers:

# Test importer and one of the aerial imagery classifiers, RoofShapeClassifier:
my_class = importer.get_class('RoofShapeClassifier')
my_classifier = my_class()
predictions = my_classifier.predict(aerial_images)
Expand All @@ -63,8 +62,9 @@
predictions = my_classifier.predict(aerial_images)
print(predictions)

my_class = importer.get_class('FacadeParser')
# Test importer and one of the street-level imagery classifiers,
# OccupancyClassifier:
my_class = importer.get_class('OccupancyClassifier')
my_classifier = my_class()
# will need a new image set
predictions = my_classifier.predict(street_images)
print(predictions)
print(predictions)

0 comments on commit ed1442f

Please sign in to comment.