Skip to content

Commit

Permalink
count nb feats
Browse files Browse the repository at this point in the history
  • Loading branch information
svebk committed Feb 6, 2020
1 parent 54929b3 commit 0d5adf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions cufacesearch/cufacesearch/updater/extraction_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ def __init__(self, q_in, q_out, url_input=True):
# If you have another way of getting the images based on SHA1
# TODO: This could be a parameter... Should be passed down from ExtractionProcessor
self.fallback_pattern = None
# This is served by a DB, and we are hitting too heavily.
# Wait to see if Tellfinder can dump the missing images.
#self.fallback_pattern = "https://content.tellfinder.com/image/{}.jpeg"

# self.fallback_pattern = "https://www.fallback.com/image/{}.jpeg"

def run(self):
"""Perform download from web or loading from disk
Expand Down
5 changes: 2 additions & 3 deletions tests/count_nbfeats.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# This should be run in the docker
from __future__ import print_function
from cufacesearch.indexer.hbase_indexer_minimal import HBaseIndexerMinimal
from cufacesearch.detector.utils import show_bbox_from_URL
import numpy as np
import base64
import sys

start_row = '0' * 40

# Change that
hbim = HBaseIndexerMinimal('../conf/generated/conf_extraction_lfw_local_dlib.json')
#hbim.get_updates_from_date()
nb_face = 0
Expand Down

0 comments on commit 0d5adf0

Please sign in to comment.