Consult the probation department for the court in which you were sentenced. There may be options, but you should get them approved in advance.