Any-to-Any
Transformers
Safetensors
janus
image-text-to-text
muiltimodal
text-to-image
unified-model
Instructions to use deepseek-community/Janus-Pro-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-community/Janus-Pro-1B with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("deepseek-community/Janus-Pro-1B") model = AutoModelForMultimodalLM.from_pretrained("deepseek-community/Janus-Pro-1B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -35,14 +35,7 @@ Janus-Pro is constructed based on the DeepSeek-LLM-1.5b-base/DeepSeek-LLM-7b-bas
|
|
| 35 |
|
| 36 |
For multimodal understanding, it uses the [SigLIP-L](https://huggingface.co/timm/ViT-L-16-SigLIP-384) as the vision encoder, which supports 384 x 384 image input. For image generation, Janus-Pro uses the tokenizer from [here](https://github.com/FoundationVision/LlamaGen) with a downsample rate of 16.
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
## 3. Quick Start
|
| 41 |
-
|
| 42 |
-
Please refer to [**Github Repository**](https://github.com/deepseek-ai/Janus)
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
## 4. Usage Examples
|
| 46 |
|
| 47 |
### Single Image Inference
|
| 48 |
|
|
@@ -137,10 +130,10 @@ for i, image in enumerate(images["pixel_values"]):
|
|
| 137 |
image.save(f"image{i}.png")
|
| 138 |
```
|
| 139 |
|
| 140 |
-
##
|
| 141 |
|
| 142 |
This code repository is licensed under [the MIT License](https://github.com/deepseek-ai/DeepSeek-LLM/blob/HEAD/LICENSE-CODE). The use of Janus-Pro models is subject to [DeepSeek Model License](https://github.com/deepseek-ai/DeepSeek-LLM/blob/HEAD/LICENSE-MODEL).
|
| 143 |
-
##
|
| 144 |
|
| 145 |
```
|
| 146 |
@article{chen2025janus,
|
|
@@ -151,6 +144,6 @@ This code repository is licensed under [the MIT License](https://github.com/deep
|
|
| 151 |
}
|
| 152 |
```
|
| 153 |
|
| 154 |
-
##
|
| 155 |
|
| 156 |
If you have any questions, please raise an issue or contact us at [service@deepseek.com](mailto:service@deepseek.com).
|
|
|
|
| 35 |
|
| 36 |
For multimodal understanding, it uses the [SigLIP-L](https://huggingface.co/timm/ViT-L-16-SigLIP-384) as the vision encoder, which supports 384 x 384 image input. For image generation, Janus-Pro uses the tokenizer from [here](https://github.com/FoundationVision/LlamaGen) with a downsample rate of 16.
|
| 37 |
|
| 38 |
+
## 3. Usage Examples
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
### Single Image Inference
|
| 41 |
|
|
|
|
| 130 |
image.save(f"image{i}.png")
|
| 131 |
```
|
| 132 |
|
| 133 |
+
## 4. License
|
| 134 |
|
| 135 |
This code repository is licensed under [the MIT License](https://github.com/deepseek-ai/DeepSeek-LLM/blob/HEAD/LICENSE-CODE). The use of Janus-Pro models is subject to [DeepSeek Model License](https://github.com/deepseek-ai/DeepSeek-LLM/blob/HEAD/LICENSE-MODEL).
|
| 136 |
+
## 5. Citation
|
| 137 |
|
| 138 |
```
|
| 139 |
@article{chen2025janus,
|
|
|
|
| 144 |
}
|
| 145 |
```
|
| 146 |
|
| 147 |
+
## 6. Contact
|
| 148 |
|
| 149 |
If you have any questions, please raise an issue or contact us at [service@deepseek.com](mailto:service@deepseek.com).
|