d4e9f0fb6d41a927d55a9a9db88c49fc17d8d70f,src/detection/box_walker.py,BoxWalker,walk,#BoxWalker#,48
Before Change
street_results = street_walker.walk()
results += street_results
nb_images += street_walker._nb_images
self.status_printer.set_state(i, len(results))
self.status_printer.end_walking(nb_images)
self.plain_result = self._merge_near_nodes(results)
self.compared_with_osm_result = self._compare_osm_with_detected_crosswalks(self.plain_result)
After Change
raise Exception(error_message)
tiles = self._get_tiles_of_box(self.streets, self.tile)
images = [tile.image for tile in tiles]
predictions = self.convnet.detect(images)
results = []
for i in range(len(tiles)):
prediction = predictions[i]
if self.is_crosswalk(prediction):
results.append(tiles[i].get_centre_node())
self.plain_result = self._merge_near_nodes(results)
self.compared_with_osm_result = self._compare_osm_with_detected_crosswalks(self.plain_result)
return self.compared_with_osm_result
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: geometalab/OSMDeepOD
Commit Name: d4e9f0fb6d41a927d55a9a9db88c49fc17d8d70f
Time: 2016-08-12
Author: samuel.kurath@gmail.com
File Name: src/detection/box_walker.py
Class Name: BoxWalker
Method Name: walk
Project Name: home-assistant/home-assistant
Commit Name: 09693bf16cdd04bf04f0c61519d42428276a6f5c
Time: 2016-04-17
Author: bradsk88@gmail.com
File Name: homeassistant/components/light/wink.py
Class Name: WinkLight
Method Name: turn_on
Project Name: keras-team/autokeras
Commit Name: cdbb8791ec13d03fd1fcf2580111db677a3ebc29
Time: 2019-12-15
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/block.py
Class Name: EmbeddingBlock
Method Name: set_state
Project Name: jhfjhfj1/autokeras
Commit Name: cdbb8791ec13d03fd1fcf2580111db677a3ebc29
Time: 2019-12-15
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/block.py
Class Name: ConvBlock
Method Name: set_state