A transgender girl identified by police as Travez Perry (above) has been charged with assaulting two students at Tromball High School in Texas

A transgender girl accused of assaulting two students at a Texas high school alleges that she was being bullied and was merely fighting back.

Shocking video shows a student identified by police as Travez Perry violently punching, kicking and stomping on a girl in the hallway of Tomball High School.

The female student was transported to the hospital along with a male student, whom Perry allegedly kicked in the face and knocked unconscious.

According to the police report, Perry - who goes by 'Millie' - told officers that the victim has been bullying her and had posted a photo of her on social media with a negative comment.

One Tomball High School parent whose daughter knows Perry said that the 18-year-old had been the target of a death threat.

'From what my daughter has said that the girl that was the bully had posted a picture of Millie saying people like this should die,' the mother, who asked not to be identified by name, told DailyMail.com.

When Perry appeared in court on assault charges, her attorney told a judge that the teen has been undergoing a difficult transition from male to female and that: 'There's more to this story than meets the eye.'

Blurry video footage shows Perry (in red) violently punching, kicking and stomping on a peer. The female student and another male student were both hospitalized following the incident

According to the police report, Perry told officers that the victim has been bullying her. One Tomball High School parent whose daughter is friends with Perry told DailyMail.com the altercation was sparked by a death threat on social media

Perry is currently out on bond, according to authorities.

The video of the altercation sparked a widespread debate on social media as some claim Perry was justified in standing up to her alleged bullies and others condemn her use of violence.

The mother who spoke with DailyMail.com has been one of Millie's most ardent defenders on Facebook.

'I do not condone violence at all. But situations like this show that people now a days, not just kids, think they can post what they want. Or say what they want without thinking of who they are hurting,' she said.

'Nobody knows what Millie has gone through, and this could have just been a final straw for her. That is all speculation of course because I don't personally know her or her family, but as a parent and someone who is part of the LGBTQ community this girl needs help and support, not grown men online talking about her private parts and shaming and mocking her.'

Perry's attorney said the 18-year-old (above) is currently transitioning from male to female

Perry is seen during a court appearance on assault charges in Tomball, a Houston suburb

However, many don't agree with the view that Perry was justified.

One Facebook commenter summed up the views of many, writing: 'This was brutal, and severe! I was bullied for years and never attacked anyone!'

Multiple commenters rejected the gender transition defense and classified the attack as a male senselessly beating a female.

One woman wrote on Facebook: 'This person will get off because they're transitioning. This is an animal. She kicked, and stomped, and beat...not okay. Bullying is not acceptable, but kicking someone in the head. Punishment doesn't fit the crime.'

A third woman, however, defended Perry's actions by writing: 'I’m pretty sure this is a hard time for her especially if she is transitioning. And then to have people possibly bullying and making fun of her is hard. I don’t blame her.

'People need to start respecting others and minding their business. This bullying crap is getting old and people aren’t standing for it anymore.'

Tomball High School, where the alleged assault took place, is pictured above in a file image

The mother of the male student hospitalized following the attack told ABC13 her son was recovering well, but she would not comment on the circumstances of the altercation.

Tomball school district officials said they are working with police in an investigation into the incident.

'Tomball ISD will not tolerate this behavior and will apply the student code of conduct in a stern and efficient manner,' the district said in a statement.