Hundreds of gay rights activists marched to the beat of drums in Delhi on Sunday, both to celebrate their sexuality and to draw attention to the continuing discrimination India's LGBT community faces.

Some participants in the annual gay pride parade said the ninth event felt different to past marches because more people have come to accept gay, lesbian, bisexual, and transgender people. But others said India's right-wing government is reversing rights gains.

Campaigners demanded the repeal of a recently re-instated law criminalising homosexual acts.

In 2009, activists cheered and danced in the street when the New Delhi High Court declared Section 377 of the Penal Code unconstitutional. The colonial era anti-sodomy law, which is vaguely worded but usually interpreted as criminalising various homosexual acts, was written into the law books of dozens of colonies by the British Empire. It still exists today in 42 of 52 British commonwealth nations.

India temporarily took the tally down to 51, but the judgment was overturned in 2013, when India's Supreme Court decided that amending or repealing Section 377 should be left to Parliament, not the judiciary.

The law makes gay sex punishable by up to 10 years in prison.

“There has been a lot of change, and we have gone back also,” said Saurav Jain, a 33-year-old architect who attended the parade.

Rituparna Borah, an activist, was not very hopeful, saying that the Hindu nationalist government of Prime Minister Narendra Modi was not supportive of gay rights. “We have yet to have an inclusive society,” she said.

In pictures: Gay pride march in Nepal Show all 10 1 /10 In pictures: Gay pride march in Nepal In pictures: Gay pride march in Nepal nepal-gay-pride-6.jpg A reveller dances while taking part in a LGBT (lesbian, gay, bisexual, and transgender) pride parade Reuters In pictures: Gay pride march in Nepal nepal-gay-pride-1.jpg A participant poses in a Gay Pride rally in Katmandu, Nepal AP In pictures: Gay pride march in Nepal nepal-gay-pride-2.jpg A participant smiles in a Gay Pride rally in Katmandu, Nepal. About 1,000 people, including gays, lesbians, transvestites and their supporters hold the rally that has now become an annual festival for sexual minorities to celebrate and to demand rights for their community AP In pictures: Gay pride march in Nepal nepal-gay-pride-4.jpg Participants dance during Nepal's 4th International Gay Pride parade in Kathmandu Getty Images In pictures: Gay pride march in Nepal nepal-gay-pride-5.jpg A Nepalese transgender is pictured while getting ready for a LGBT (lesbian, gay, bisexual, and transgender) pride parade Reuters In pictures: Gay pride march in Nepal nepal-gay-pride-8.jpg Participants take part in Nepal's 4th International Gay Pride parade in Kathmandu Getty Images In pictures: Gay pride march in Nepal nepal-gay-pride-7.jpg A reveller dances while taking part in a LGBT (lesbian, gay, bisexual, and transgender) pride parade Reuters In pictures: Gay pride march in Nepal nepal-gay-pride-3.jpg A participant puts on lipstick in a Gay Pride rally in Katmandu, Nepal AP In pictures: Gay pride march in Nepal nepal-gay-pride-9.jpg People dance in a Gay Pride rally in Katmandu, Nepal AP In pictures: Gay pride march in Nepal nepal-gay-pride-10.jpg People dance in a Gay Pride rally in Katmandu, Nepal AP

Over the past decade, LGBT people have gained a degree of acceptance in India, especially in big cities. Many bars have gay nights, and some high-profile Bollywood films have dealt with gay issues.

However, being gay is seen as shameful in most of the country, and many people keep their sexual preference and gender identity secret.