TransNeRF: Multi-View Optimization for General Neural Radiance Fields Across Scenes