{"id":14954449,"url":"https://github.com/tensorflow/java-models","last_synced_at":"2025-04-05T15:05:36.055Z","repository":{"id":49720947,"uuid":"207384930","full_name":"tensorflow/java-models","owner":"tensorflow","description":"Models in Java","archived":false,"fork":false,"pushed_at":"2025-02-05T20:00:56.000Z","size":44011,"stargazers_count":81,"open_issues_count":9,"forks_count":42,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-29T14:08:52.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tensorflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-09T19:09:24.000Z","updated_at":"2025-03-20T14:34:14.000Z","dependencies_parsed_at":"2024-12-15T17:12:04.316Z","dependency_job_id":"55672eff-d89a-4ef2-a558-75fddf9c5bfc","html_url":"https://github.com/tensorflow/java-models","commit_stats":{"total_commits":29,"total_committers":9,"mean_commits":"3.2222222222222223","dds":0.6896551724137931,"last_synced_commit":"ed75c1c1681c7f1e8b225c4d46d29741829e9929"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensorflow%2Fjava-models","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensorflow%2Fjava-models/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensorflow%2Fjava-models/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensorflow%2Fjava-models/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tensorflow","download_url":"https://codeload.github.com/tensorflow/java-models/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353731,"owners_count":20925329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T13:03:16.901Z","updated_at":"2025-04-05T15:05:36.032Z","avatar_url":"https://github.com/tensorflow.png","language":"Java","readme":"# TensorFlow Java Examples\n\nThis repository contains examples for [TensorFlow-Java](https://github.com/tensorflow/java).\n\n## Example Models\n\nThere are five example models: a LeNet CNN, a VGG CNN, inference using Faster-RCNN, a linear regression and a logistic regression.  \n\n### Faster-RCNN\n\nThe Faster-RCNN inference example is in `org.tensorflow.model.examples.cnn.fastrcnn`. \n\nDownload the model from https://tfhub.dev/tensorflow/faster_rcnn/inception_resnet_v2_1024x1024/1\n\nUnzip then untar the model to a local folder - I've used models/faster_rcnn_inception_resnet_v2_1024x1024.\n\nCreate a testimages folder then add some test images into a testimages folder\n\nTo run the example add the input image and output image as parameters:\n\n```shell\njava -cp target/tensorflow-examples-1.0.0-tfj-1.0.0-rc.2-jar-with-dependencies.jar org.tensorflow.model.examples.cnn.fastrcnn.FasterRcnnInception testimages/image2.jpg image2rcnn.jpg\n```\n\n### LeNet CNN\n\nThe LeNet example runs on MNIST which is stored in the project's resource directory. It is found in \n`org.tensorflow.model.examples.cnn.lenet`, and can be run with:\n\n```shell\njava -cp target/tensorflow-examples-1.0.0-tfj-1.0.0-rc.2-with-dependencies.jar org.tensorflow.model.examples.cnn.lenet.CnnMnist\n```\n\n### VGG\n\nThe VGG11 example runs on FashionMNIST, stored in the project's resource directory. It is found in \n`org.tensorflow.model.examples.cnn.vgg`, and can be run with:\n\n```shell\njava -cp target/tensorflow-examples-1.0.0-tfj-1.0.0-rc.2-with-dependencies.jar org.tensorflow.model.examples.cnn.vgg.VGG11OnFashionMnist\n```\n\n### Linear Regression\n\nThe linear regression example runs on hard coded data. It is found in `org.tensorflow.model.examples.regression.linear`\nand can be run with:\n\n```shell\njava -cp target/tensorflow-examples-1.0.0-tfj-1.0.0-rc.2-with-dependencies.jar org.tensorflow.model.examples.regression.linear.LinearRegressionExample\n```\n\n### Logistic Regression\n\nThe logistic regression example runs on MNIST, stored in the project's resource directory. It is found in \n`org.tensorflow.model.examples.dense.SimpleMnist`, and can be run with:\n\n```shell\njava -cp target/tensorflow-examples-1.0.0-tfj-1.0.0-rc.2-with-dependencies.jar org.tensorflow.model.examples.dense.SimpleMnist\n```\n\n## Contributions\n\nContributions of other example models are welcome, for instructions please see the \n[Contributor guidelines](https://github.com/tensorflow/java/blob/master/CONTRIBUTING.md) in TensorFlow-Java.\n\n## Development\n\nThis repository tracks TensorFlow-Java and the head will be updated with new releases of TensorFlow-Java.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensorflow%2Fjava-models","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftensorflow%2Fjava-models","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensorflow%2Fjava-models/lists"}