if you have been on your H-1b for less than 183 and the rest of the year you were on F1, then treaty benefit. Otherwise no.
There are a lot of posts regarding this, do a search and read those...
There are a lot of posts regarding this, do a search and read those...