Image Segmentation
Transformers
PyTorch
repcontur
feature-extraction
medical
radiology
ct
3d
tumor-segmentation
referring-segmentation
report-generation
visual-question-answering
custom_code
Instructions to use Oncosoft-Research/RepConTUR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Oncosoft-Research/RepConTUR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="Oncosoft-Research/RepConTUR", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Oncosoft-Research/RepConTUR", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from Oncosoft-Research/RepConTUR: direct link, hf CLI and curl.
- Browser
- Download file 875 Bytes
-
https://huggingface.co/Oncosoft-Research/RepConTUR/resolve/main/chat_template.jinja
- Command line
-
hf download hf://Oncosoft-Research/RepConTUR/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/Oncosoft-Research/RepConTUR/resolve/main/chat_template.jinja
875 Bytes
| {%- if messages[0]['role'] == 'system' %}{{- '<|im_start|>system | |
| ' + messages[0]['content'] + '<|im_end|> | |
| ' }}{%- else %}{{- '<|im_start|>system | |
| 你是书生·万象,英文名是InternVL,是由上海人工智能实验室、清华大学及多家合作单位联合开发的多模态大语言模型。<|im_end|> | |
| ' }}{%- endif %}{% for message in messages %}{%- if messages[0]['role'] != 'system' or not loop.first %}{{'<|im_start|>' + message['role'] + ' | |
| '}}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' %}{{ '<image> | |
| ' }}{% elif content['type'] == 'video' %}{{ '<video> | |
| ' }}{% elif content['type'] == 'text' %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}{{'<|im_end|> | |
| '}}{%- endif %}{% endfor %}{% if add_generation_prompt %}{{'<|im_start|>assistant | |
| ' }}{% endif %} |