Skip to content

Commit

Permalink
feat(tf): add birds classifier
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Jun 5, 2022
1 parent f21fbce commit 933e880
Show file tree
Hide file tree
Showing 5 changed files with 3,872 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kritter/tf/__init__.py
Expand Up @@ -14,4 +14,5 @@

from .tfdetector import TFDetector
COCO = os.path.join(_basepath, "coco")
BIRDFEEDER = os.path.join(_basepath, "birdfeeder")
BIRDFEEDER = os.path.join(_basepath, "birdfeeder")
BIRDS = os.path.join(_basepath, "birds")
11 changes: 11 additions & 0 deletions src/kritter/tf/birds/convert_graph.cr
@@ -0,0 +1,11 @@
require "csv"

file_input = ARGV[0]
file_output = ARGV[1]
puts "Reading #{file_input}"
puts "Writing #{file_output}"
File.open(file_output, "w") do |output|
CSV.each_row(File.open(file_input)) do |row|
output << %(item {\n id: #{row[0]}\n name: '#{row[1]}'\n}\n)
end
end
Binary file added src/kritter/tf/birds/frozen_inference_graph.pb
Binary file not shown.

0 comments on commit 933e880

Please sign in to comment.