Tori Spelling and Dean McDermott Tori Spelling and Dean McDermott

Dean McDermott has been discharged from the hospital, says wife Tori Spelling.

McDermott, who was being treated for a punctured and collapsed lung following a dirt bike accident last week, was released Tuesday afternoon, Spelling tweeted. She said she picked him up with their kids, Liam, 3, and Stella, 2.

Tori Spelling: Dean McDermott out of ICU

McDermott injured himself June 29 after smashing his chest into the bars on his bike. He also received three stitches in his right butt cheek, where a stone got embedded, he tweeted Friday."Let's just say, I won't be dirt-biking anymore," he wrote.

Dean McDermott suffers collapsed lung in dirt bike accident

On Monday, the actor tweeted that he will be doing rehab for a while as he "messed a few things up" in the crash.McDermott, 43, and Spelling, 37, have been married for four years.