Skip to content

Commit

Permalink
revert format
Browse files Browse the repository at this point in the history
  • Loading branch information
KexinFeng committed Oct 12, 2022
1 parent 3aa7b76 commit a13f059
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static TrainingResult runExample(String[] args)
}

// Also available at
// "https://mlrepo.djl.ai/model/cv/image_classification/ai/djl/pytorch/resnet18_embedding/0.1/traced_resnet18_embedding.pt.gz";
// "https://mlrepo.djl.ai/model/cv/image_classification/ai/djl/pytorch/resnet18_embedding/0.0.1/traced_resnet18_embedding.pt.gz";
String modelUrls = "/Users/fenkexin/Desktop/transferDJL/code/base_nw.pt";
Criteria<NDList, NDList> criteria =
Criteria.builder()
Expand Down Expand Up @@ -137,11 +137,11 @@ private static ImageFolder getData(String subfolderName, String fruit, int batch
// href="https://www.kaggle.com/datasets/sriramr/fruits-fresh-and-rotten-for-classification">https://www.kaggle.com/datasets/sriramr/fruits-fresh-and-rotten-for-classification</a>
String folderUrl = "/Users/fenkexin/Desktop/transferDJL/code/data/" + fruit;
String subfolder = "/" + subfolderName + "/";
Repository repositoryTrain =
Repository repository =
Repository.newInstance("banana", Paths.get(folderUrl + subfolder));
ImageFolder dataset =
ImageFolder.builder()
.setRepository(repositoryTrain)
.setRepository(repository)
.addTransform(new ToTensor())
.addTransform(new Transpose(1, 2, 0))
.addTransform(new Resize(224, 224))
Expand Down

0 comments on commit a13f059

Please sign in to comment.