---
title: StyleGAN2
canonical_url: "https://www.modelscope.cn/models/SJ007NB/StyleGAN2"
md_url: "https://www.modelscope.cn/models/SJ007NB/StyleGAN2.md"
repository: SJ007NB/StyleGAN2
last_updated: 2025-02-12
license: "Apache License 2.0"
pipeline_tag: motion-generation
tasks:
  - motion-generation
library_name:
  - pytorch
frameworks:
  - Pytorch
domain:
  - cv
downloads: 21
stars: 0
tags:
  - pretrained
---

# StyleGAN2

> StyleGAN2 - SJ007NB 在 ModelScope 开源的模型。Download pre-trained StyleGAN2 weights

SJ007NB/StyleGAN2 是 ModelScope 魔搭社区上的motion-generation模型，采用 Apache License 2.0 许可。

- **Repository**: SJ007NB/StyleGAN2
- **License**: Apache License 2.0
- **Tasks**: motion-generation
- **Tags**: pretrained
- **Downloads**: 21
- **Stars**: 0
- **Last updated**: 2025-02-12

Source: https://www.modelscope.cn/models/SJ007NB/StyleGAN2

---

# StyleGAN2 

Download pre-trained StyleGAN2 weights

```
{
  "https://storage.googleapis.com/self-distilled-stylegan/lions_512_pytorch.pkl": "stylegan2_lions_512_pytorch.pkl",
  "https://storage.googleapis.com/self-distilled-stylegan/dogs_1024_pytorch.pkl": "stylegan2_dogs_1024_pytorch.pkl",
  "https://storage.googleapis.com/self-distilled-stylegan/horses_256_pytorch.pkl": "stylegan2_horses_256_pytorch.pkl",
  "https://storage.googleapis.com/self-distilled-stylegan/elephants_512_pytorch.pkl": "stylegan2_elephants_512_pytorch.pkl",
  "https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan2/versions/1/files/stylegan2-ffhq-512x512.pkl": "stylegan2-ffhq-512x512.pkl",
  "https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan2/versions/1/files/stylegan2-afhqcat-512x512.pkl": "stylegan2-afhqcat-512x512.pkl",
  "http://d36zk2xti64re0.cloudfront.net/stylegan2/networks/stylegan2-car-config-f.pkl": "stylegan2-car-config-f.pkl",
  "http://d36zk2xti64re0.cloudfront.net/stylegan2/networks/stylegan2-cat-config-f.pkl": "stylegan2-cat-config-f.pkl"
}
```

### 模型文件和权重，可浏览“模型文件”页面获取。
#### 您可以通过如下git clone命令，或者ModelScope SDK来下载模型

SDK下载
```bash
#安装ModelScope
pip install modelscope
```
```python
#SDK模型下载
from modelscope import snapshot_download
model_dir = snapshot_download('SJ007NB/StyleGAN2')
```
Git下载
```
#Git模型下载
git clone https://www.modelscope.cn/SJ007NB/StyleGAN2.git
```
