Polanski will have to wear an electronic bracelet and stay in his chalet
Film director Roman Polanski will be released from prison on Friday and placed under house arrest at his chalet in Gstaad.
The Swiss justice ministry says the transfer will take place after 1200 GMT on Friday.
The move comes after the 76-year-old was granted bail after being arrested in September.
He fled the US in 1978 after pleading guilty to having unlawful sex with an underage girl.
Polanski will be fitted with an electronic bracelet that will activate if he attempts to abscond from the chalet.
The Swiss Federal Criminal Court granted the Oscar-winning director $4.5m (£2.7m) bail, pending proceedings for his possible extradition to the US.
The director of films such as Rosemary's Baby, Chinatown and The Pianist was arrested after travelling to Zurich on 26 September to pick up a lifetime achievement award.
Polanski was accused of raping a 13-year-old girl after plying her with champagne and a sedative during a modelling shoot in 1977.
He was initially indicted on six counts - including rape by use of drugs, child molesting and sodomy - but pleaded guilty to the lesser charge of unlawful sexual intercourse.
Polanski fled the US on the day he was to be sentenced, and has lived in France since then.