Director Randall Miller pleaded guilty Monday to involuntary manslaughter and criminal trespassing, and will serve two years in prison for the 2014 death of his camera assistant, Sarah Jones.

Miller was helming the Allman Brothers biopic Midnight Rider when Jones, 27, was killed and six other crew members were injured after they were struck by a freight train on Feb. 20, 2014, on a bridge in Georgia.

Director Randall Miller indicted in fatal train crash on Allman biopic set

Executive producer Jay Sedrish also pleaded guilty and was sentenced to 10 years on probation. Charges are still pending against assistant director Hillary Schwartz. As part of Miller's plea deal, charges against his wife and business partner, Jody Savin, were dropped.

They were charged because prosecutors said they ignored a written notice from the company that owns the bridge denying their request for permission to film there.

"Randall Miller at the time this happened believed there were not any more trains that would come down that track," his attorney, Ed Garland, told the AP. "But he accepts responsibility."

In addition to his two-year jail sentence, Miller was ordered to spend eight years on probation and pay a $20,000 fine.

In the wake of Jones' death, star William Hurt dropped out of the project. The future of the film is unclear - Gregg Allman sued Miller last year to prevent the film from being made. They settled out of court and the terms of the settlement have not been made public.