Skip to content

Commit ca54bf0

Browse files
committed
little fixes
1 parent 4d33b7d commit ca54bf0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/ofxMSATFImageClassifier.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ class ImageClassifier {
2323
} settings;
2424

2525

26-
bool setup(const Settings& settings);
26+
ImageClassifier() {}
27+
ImageClassifier(const Settings& settings) { setup(settings); }
28+
2729

30+
bool setup(const Settings& settings);
2831
bool isReady() const;
2932

3033

src/ofxMSATFUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ inline void getTopScores(tensorflow::Tensor scores_tensor, int topk_count, vecto
6868
// Takes a file name, and loads a list of labels from it, one per line, and
6969
// returns a vector of the strings. It pads with empty strings so the length
7070
// of the result is a multiple of 16, because our model expects that.
71-
bool readLabelsFile(string file_name, vector<string>& result);
71+
inline bool readLabelsFile(string file_name, vector<string>& result);
7272

7373

7474
// IMPLEMENTATIONS

0 commit comments

Comments
 (0)