Instructions to use rajeshidimannan/ft_image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use rajeshidimannan/ft_image with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolVLM2-500M-Video-Instruct") model = PeftModel.from_pretrained(base_model, "rajeshidimannan/ft_image") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from rajeshidimannan/ft_image: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/rajeshidimannan/ft_image/resolve/main/processor_config.json
- Command line
-
hf download hf://rajeshidimannan/ft_image/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/rajeshidimannan/ft_image/resolve/main/processor_config.json
1.46 kB
| { | |
| "image_processor": { | |
| "do_convert_rgb": true, | |
| "do_image_splitting": true, | |
| "do_normalize": true, | |
| "do_pad": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_processor_type": "SmolVLMImageProcessor", | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "max_image_size": { | |
| "longest_edge": 512 | |
| }, | |
| "resample": 1, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "longest_edge": 2048 | |
| }, | |
| "video_sampling": { | |
| "fps": 1, | |
| "max_frames": 64, | |
| "video_size": { | |
| "longest_edge": 512 | |
| } | |
| } | |
| }, | |
| "image_seq_len": 64, | |
| "processor_class": "SmolVLMProcessor", | |
| "video_processor": { | |
| "do_convert_rgb": true, | |
| "do_image_splitting": true, | |
| "do_normalize": true, | |
| "do_pad": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "do_sample_frames": false, | |
| "fps": 1, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "max_image_size": { | |
| "longest_edge": 512 | |
| }, | |
| "num_frames": 64, | |
| "resample": 1, | |
| "rescale_factor": 0.00392156862745098, | |
| "return_metadata": false, | |
| "size": { | |
| "longest_edge": 2048 | |
| }, | |
| "video_processor_type": "SmolVLMVideoProcessor", | |
| "video_sampling": { | |
| "fps": 1, | |
| "max_frames": 64, | |
| "video_size": { | |
| "longest_edge": 2048 | |
| } | |
| } | |
| } | |
| } | |