The dent in the lower pic is very close to that weld, maybe even on it? Where the welds are is where stress points are. I don't know how much stress is put on a top tube compared to the other parts of the frame, but with those dents it doesn't look too safe to ride imo.
Just to add if you're still tempted to use it. The problem is its strength is in its form, thats how it can be so thin and light. Like you can stand on an empty coke can if it's perfectly round and the pressures evenly applied, soon as you dent it , it collapses very quickly. There is a lot of push on that top tube, one good stressor and it will fail.