I implemented DETR from scratch in pytorch. Somehow the model only converges slowly, but…
- User
I implemented DETR from scratch in pytorch. Somehow the model only converges slowly, but the loss is steadily decreasing. I also added the functionality to resume from checkpoint. As soon as i resume from an old checkpoint, the loss is decreasing massively. Also interesting is that i end up with total different looking predictions. I could visually observe this as i wrote a function to draw me the predictions. It feels like something is not being reset during training which influences the predictions during training and evaluation. When i now load the latest "fresh" training state i end up with totally different results. Also the loss is massively decreasing by an estimated value of 40 percent. Regarding that hypothesis: I reset the gradients via optimizer.zero_grad() for each epoch. Please help me with figuring out, what is happening. If you need more details before making an assumption, ask for the information you need.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.