Model details
模型介绍 中文整理 内容审核模型介绍
稳定调用及效果更好的API,详见视觉开放智能平台:图片智能鉴黄。
内容审核模型-鉴黄
模型描述
模型(项目地址)采用resnet50作为backbone,训练数据集为NSFW,本模型使用去噪后的大约250k训练数据(40g左右),训练集包含五类标签,分别为pornography images,hentai images and pornographic drawings,sexually explicit images, safe for work neutral images,safe for work drawings and anime。其中sexually explicit images认为是不合规的内容,其余均为合规内容。
模型效果
模型使用方式和使用范围
本模型可以用来判断图片中的内容是否涉黄,分数越高则不涉黄的可能性越高。
使用方式
推理:输入图片,返回图片不涉黄的可能性。
目标场景
鉴黄模型是贯彻《互联网信息服务管理办法》、促进网络环境绿色健康化发展以及降低人力成本,提升鉴黄效率的一项重要举措。鉴黄模型可以使用在大型网站服务器、各类图片云服务器以及其他支持图片存储的社交应用、垂直社区等UGC 平台上,这些平台都需要对用户上传的图像内容进行审核。
模型局限性及可能偏差
目前模型只支持对设计色情图片的审核,对血腥,暴力审核场景暂不支持
预处理
测试时主要的预处理如下:
Normalize:图像归一化,减均值除以标准差
Pad:图像高宽补零至32的倍数
代码范例
来源说明
本模型及代码来自第三方开源技术(项目地址)。
优先采用原作者提供的中文模型卡片;仅有英文说明时由闲社AI翻译整理。重要参数、许可证和商用范围请以原文为准。
你将获得什么 完整仓库方式包含该固定版本中的权重、配置、分词器及说明文件;指定版本方式只下载所选文件或整组分片。多模态模型的投影文件、配置等依赖,请按作者说明配齐。
完整仓库可能包含多个权重格式,因此需要的磁盘空间可能大于单一格式的模型大小。下载文件不等于完成模型部署。
使用前须知 运行环境 运行模型需要的设备、工具与依赖,以原作者说明为准。
授权范围 是否允许商用、修改和分发,请查看模型许可证。
闲社提供资料与镜像下载方法,不代表已运行模型或完成安全审计。下载的代码应先检查,再执行。
Problem with the information or download? Sign in to submit feedback.
Pinned version · Multiple download options
cv_resnet50_image-classification_cc model download Download the full repository or choose a version or file.
Choose a download source ModelScope · China direct
Pinned ModelScope version: 1da74a3707757572c9508e453aa5e9a43fecc206. Version identifiers can differ across sites. The alternative source was provided after checking weights and runtime configuration; this is not proof of a successful model run.
A checked, pinned ModelScope source is available for this model. Use the ModelScope download tool.
Choose what to download
Full repository · All files Selected version / file
Need just one GGUF precision? Load the file manifest and choose a version. Direct file links do not require Python; the command below can download multiple shards together.
Load available versions and files
Quantization / file Load the manifest to choose
This reads the pinned version's file manifest; no model weights are downloaded.
Choose your operating system Windows · PowerShell Linux / macOS · Terminal
For command-line downloads, follow these steps to get the full repository or selected files. Direct file links do not need these steps.
1 Open a terminal window Create and open a folder for the model. In the folder's address bar, enter powershell and press Enter.
If Python is not installed, get it from the official Python website . In the terminal, enter python --version; continue when a version number appears.
2 First time? Install the download tool Copy this command, paste it into the terminal, press Enter and wait for installation to finish.
python -m pip install --upgrade huggingface_hubCopy install command Already installed? Continue to step 3.
3 Run the download command Select the button below, paste into the same terminal and press Enter. The tool downloads all files included in the current command.
Copy full download command
Copying does not start a download. Paste and run the command on your device.
Where are the downloaded files? Open the folder you chose. Look for the models folder. When progress stops and the terminal returns to its prompt without errors, check that all files are present. 'Copied' does not mean 'downloaded'.
No response or an error? python not found: Install Python and reopen the terminal. On Windows, follow the installer's instructions to enable command-line access.
hf not found: Confirm that step 2 succeeded, then reopen the terminal. If needed, add Python's Scripts folder to your user PATH. Do not repeatedly download scripts.
Network interrupted: Stay in the same folder and run the same command again. The tool checks existing files.
Permission or disk error: Choose a writable folder with enough free space. Do not disable system security protection.
View the full download command
请开启浏览器脚本,或使用默认 Windows 教程并展开命令手动复制执行。