Skip to content

Commit

Permalink
TIKA-4239: output cache file sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
THausherr committed Nov 26, 2024
1 parent 5d6eef8 commit 97e4f08
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static org.junit.jupiter.api.Assumptions.assumeFalse;
import static org.junit.jupiter.api.Assumptions.assumeTrue;

import java.io.File;
import java.io.InputStream;

import org.apache.commons.lang3.SystemUtils;
Expand All @@ -33,6 +34,10 @@ public class DL4JVGG16NetTest {

@Test
public void recognise() throws Exception {
String dir = System.getProperty("user.home");
File f1 = new File(dir, ".tika-dl/models/keras/inception-v3/inception_v3_keras_2.h5");
File f2 = new File(dir, ".tika-dl/models/keras/inception-v3/imagenet_class_index.json");
System.out.println("cache file sizes: " + f1.length() + " " + f2.length());
assumeFalse(SystemUtils.OS_ARCH.equals("aarch64"), "doesn't yet work on aarch64");
TikaConfig config = null;
try (InputStream is = getClass().getResourceAsStream("dl4j-vgg16-config.xml")) {
Expand Down

0 comments on commit 97e4f08

Please sign in to comment.