Instructions to use ControlNet/marlin_vit_large_ytf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ControlNet/marlin_vit_large_ytf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ControlNet/marlin_vit_large_ytf", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ControlNet/marlin_vit_large_ytf", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -33,7 +33,7 @@ import torch
|
|
| 33 |
from transformers import AutoModel
|
| 34 |
|
| 35 |
model = AutoModel.from_pretrained(
|
| 36 |
-
"ControlNet/
|
| 37 |
trust_remote_code=True
|
| 38 |
)
|
| 39 |
tensor = torch.rand([1, 3, 16, 224, 224]) # (B, C, T, H, W)
|
|
|
|
| 33 |
from transformers import AutoModel
|
| 34 |
|
| 35 |
model = AutoModel.from_pretrained(
|
| 36 |
+
"ControlNet/marlin_vit_large_ytf", # or other variants
|
| 37 |
trust_remote_code=True
|
| 38 |
)
|
| 39 |
tensor = torch.rand([1, 3, 16, 224, 224]) # (B, C, T, H, W)
|