Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangrong
Janus-Pro-7B_pytorch
Commits
3ceb2dca
"docs/vscode:/vscode.git/clone" did not exist on "0985533eccf4adf583b4c9164d492d70a8226422"
Commit
3ceb2dca
authored
Feb 04, 2025
by
wanglch
Browse files
add README
parents
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
0 deletions
+102
-0
README.md
README.md
+102
-0
No files found.
README.md
0 → 100644
View file @
3ceb2dca
# DeepSeek-Janus-Pro
## 论文
`Janus-Series: Unified Multimodal Understanding and Generation Models`
*
https://github.com/deepseek-ai/Janus/blob/main/janus_pro_tech_report.pdf
## 模型结构
是一个新颖的自回归框架,统一了多模态理解和生成。它通过将视觉编码解耦到单独的路径中,同时仍然利用单个统一的transformer架构进行处理,解决了以前方法的局限性。这种解耦不仅缓解了视觉编码器在理解和生成中的角色之间的冲突,而且增强了框架的灵活性。骏利超越了以前的统一模型,匹配或超过了特定任务模型的性能。Janus的简单性、高灵活性和有效性使其成为下一代统一多模式模型的有力候选。

## 算法原理
Janus-Pro是之前工作Janus的高级版本。具体来说,Janus-Pro结合了(1)优化的训练策略(2)扩展的训练数据和(3)扩展到更大的模型尺寸。通过这些改进,Janus-Pro在多模态理解和文本到图像指令跟踪功能方面取得了重大进步,同时还增强了文本到图像生成的稳定性。

## 环境配置
### Docker(方法一)
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.3.0-ubuntu22.04-dtk24.04.3-py3.10
docker run --shm-size 500g --network=host --name=dpskr1 --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v 项目地址(绝对路径):/home/ -v /opt/hyhal:/opt/hyhal:ro -it <your IMAGE ID> bash
cd ./code_path/
pip install -r requirements.txt
### Dockerfile(方法二)
docker build -t <IMAGE_NAME>:<TAG> .
docker run --shm-size 500g --network=host --name=dpskr1 --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v 项目地址(绝对路径):/home/ -v /opt/hyhal:/opt/hyhal:ro -it <your IMAGE ID> bash
cd ./code_path/
pip install -r requirements.txt
## 数据集
无
## 训练
无
## 推理
注意:修改模型路径及图片路径
### 文生图
```
python inference.py
```
## result

### 图片问答
```
python generation_inference.py
```
## result

### 精度
无
## 应用场景
### 算法类别
`文生图、图片问答`
### 热点应用行业
`电商,教育,广媒,政府`
## 预训练权重
[
huggingface
](
https://hf-mirror.com/deepseek-ai/Janus-Pro-7B
)
|
[
SCNet高速下载通道
](
http://113.200.138.88:18080/aimodels/deepseek-ai/janus-pro-7b
)
## 源码仓库及问题反馈
*
https://developer.sourcefind.cn/codes/modelzoo/deepseek-janus-pro_pytorch
## 参考资料
*
https://github.com/deepseek-ai/Janus
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment