Humans, as we know them today (Homo sapiens), did not exist at the same time as dinosaurs. Dinosaurs lived during the Mesozoic Era, which began around 252 million years ago and ended approximately 66 million years ago. Humans, on the other hand, belong to the genus Homo, and the earliest known species of Homo, Homo habilis, appeared around 2.8 million years ago.
The most famous and diverse group of dinosaurs, the non-avian dinosaurs, went extinct approximately 66 million years ago due to a catastrophic event, likely an asteroid impact, which caused significant environmental changes.
So, there is a vast temporal gap between the existence of non-avian dinosaurs and the appearance of early human ancestors. The history of human evolution is relatively recent compared to the reign of the dinosaurs.
It's also worth noting that birds are considered modern-day descendants of theropod dinosaurs, which were a group of dinosaurs that included famous species like Tyrannosaurus rex. Birds are living relatives of dinosaurs and are part of the Dinosauria clade, but they are not the same as the non-avian dinosaurs that existed during the Mesozoic Era.