Downloads · 30 days
4
14% of all-time downloads
Jeckmu/Qwen2-VL-2B-Instruct-GPTQ-Int4-lora-SurveillanceVideo-250210
Qwen2-VL-2B-Instruct-GPTQ-Int4-lora-SurveillanceVideo-250210 is a video classification model from Jeckmu. Use it for the video classification task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as other.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
4
14% of all-time downloads
All-time downloads
29
Public
Repo size
345 MB
Likes
0
Public
Click a slice to open those files.
.pt223 MB · 51%
From the Hugging Face model README
This model is a fine-tuned version of Qwen/Qwen2-VL-2B-Instruct-GPTQ-Int4 on the Surveillance Video Classification dataset.
This model takes a video as input and classifies it into one of the following six classes [1. loitering, 2. breaking and entering, 3. abandonment, 4. falling down, 5. fighting, 6. arson]
LLaMA-Factory was used for training, with the same hyperparameters as described below.
This Model Fine-tuned by the Prompt Below. The same is true when running inference.
messages = [
{
"role": "user",
"content": [
{
"type": "video",
"video": video_path,
"max_pixels": 640 * 360,
# "fps": 1.0 # maybe default fps = 1.0
},
{
"type": "text",
"text": (
"<video>\nWatch the video and choose the six behaviours that apply to you. "
"[1. loitering, 2. breaking and entering, 3. abandonment, 4. falling down, 5. fighting, 6. arson]. "
"Your answer must be a single digit, the number of the behaviour."
)
}
]
}
]
The data used for training was sampled balanced for each class from the original video dataset and trained using 100 videos per class (except for the 6. arson class, which used 65 videos).
Each video was preprocessed with a resolution of 640x360 and an option of fps=3.0, and a 10-second segment of the video where the behavior occurred according to the metadata was cut and used for training. (So, in total, we used about 30 frames).
In the Inference course, you can use the same prompts as above. For training, we used the format of the above prompt with an additional class as the answer.
The following hyperparameters were used during training: