{"id":13672497,"url":"https://github.com/rockyzhengwu/nsfw","last_synced_at":"2026-01-16T07:06:22.074Z","repository":{"id":132992086,"uuid":"166739122","full_name":"rockyzhengwu/nsfw","owner":"rockyzhengwu","description":"Not Suitable for Work (NSFW) classification","archived":false,"fork":false,"pushed_at":"2019-01-21T03:05:12.000Z","size":2896,"stargazers_count":561,"open_issues_count":7,"forks_count":205,"subscribers_count":31,"default_branch":"master","last_synced_at":"2024-11-11T10:42:29.955Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rockyzhengwu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-01-21T02:57:26.000Z","updated_at":"2024-10-29T23:36:52.000Z","dependencies_parsed_at":"2023-07-04T06:31:31.193Z","dependency_job_id":null,"html_url":"https://github.com/rockyzhengwu/nsfw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockyzhengwu%2Fnsfw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockyzhengwu%2Fnsfw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockyzhengwu%2Fnsfw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockyzhengwu%2Fnsfw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rockyzhengwu","download_url":"https://codeload.github.com/rockyzhengwu/nsfw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251219601,"owners_count":21554444,"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-08-02T09:01:37.295Z","updated_at":"2026-01-16T07:06:22.046Z","avatar_url":"https://github.com/rockyzhengwu.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# NSFW Model\n\nThis repo contains code for running Not Suitable for Work (NSFW) classification.\n\n[online demo](http://ai.midday.me/)\n\n## Usage\n\n#### script \n\n```bash\npython nsfw_predict.py /tmp/test/test.jpeg\n```\n\nresult : \n```bash\n{'class': 'sexy', 'probability': {'drawings': 0.008320281, 'hentai': 0.0011919827, 'neutral': 0.13077603, 'porn': 0.13146976, 'sexy': 0.72824186}}\n```\n\ncan find the meaning of every label at repo [nsfw_data_scrapper](https://github.com/alexkimxyz/nsfw_data_scrapper)\n\n#### Deploy by TensorFlow Serving\n\nyour have to install [Tensorflow Serving](https://www.tensorflow.org/serving/) first\n\nstart the server\n```bash\n./start_tensorflow_serving.sh\n```\n\ntest server\n```bash\npython serving_client.py /tmp/test/test.jpeg\n```\n\n\n## Train\n\ntrain code at [resnet](./resnet)\n\ntrain a new model\n\n1. convert source to tfrecord user ```convert_image_to_tfrecord.py```\n2. train a model from scratch or fine tune\n\nthe model code copy from [Tensorflow offical model](https://github.com/tensorflow/models/tree/master/official/resnet)\n\n\n## Data\n\nyou can find the detail at repo [nsfw_data_scrapper](https://github.com/alexkimxyz/nsfw_data_scrapper)\n\n\n\n\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockyzhengwu%2Fnsfw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frockyzhengwu%2Fnsfw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockyzhengwu%2Fnsfw/lists"}