Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Commit

Permalink
*.java linguist-language=java
Browse files Browse the repository at this point in the history
  • Loading branch information
devzwy committed May 24, 2019
1 parent 620b60c commit adecc5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.java linguist-language=java
3 changes: 1 addition & 2 deletions nsfw/src/main/java/com/zwy/nsfw/Classifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ private void convertBitmapToByteBuffer(Bitmap bitmap_) {
bitmap_.getPixels(intValues, 0, INPUT_WIDTH, h_off, w_off, INPUT_WIDTH, INPUT_HEIGHT);
// Convert the image to floating point.
long startTime = SystemClock.uptimeMillis();
for (int i = 0; i < intValues.length; i++) {
final int color = intValues[i];
for (final int color : intValues) {
int r1 = Color.red(color);
int g1 = Color.green(color);
int b1 = Color.blue(color);
Expand Down

0 comments on commit adecc5d

Please sign in to comment.