Update modeling_diffusiondet.py
Browse files- modeling_diffusiondet.py +1 -1
modeling_diffusiondet.py
CHANGED
|
@@ -127,7 +127,7 @@ class DiffusionDet(PreTrainedModel):
|
|
| 127 |
self.criterion = CriterionDynamicK(config, num_classes=self.num_classes, weight_dict=weight_dict)
|
| 128 |
|
| 129 |
def _init_weights(self, module):
|
| 130 |
-
torch.nn.init.
|
| 131 |
|
| 132 |
def predict_noise_from_start(self, x_t, t, x0):
|
| 133 |
return (
|
|
|
|
| 127 |
self.criterion = CriterionDynamicK(config, num_classes=self.num_classes, weight_dict=weight_dict)
|
| 128 |
|
| 129 |
def _init_weights(self, module):
|
| 130 |
+
torch.nn.init.xavier_uniform_(module.weight)
|
| 131 |
|
| 132 |
def predict_noise_from_start(self, x_t, t, x0):
|
| 133 |
return (
|