I have noticed that there are some differences between the training and inference of omniaid.
During training, using
|
def forward(self, images) -> dict: |
|
batch_size = images.size(0) |
|
|
|
with torch.no_grad(): |
|
# Use the pooler_output as the routing feature |
|
routing_features = self.feature_extractor(images, output_hidden_states=False).pooler_output |
|
|
|
hidden_states = self.embeddings(images) |
|
hidden_states = self.ln_pre(hidden_states) |
During inference, using
|
def forward(self, images) -> dict: |
|
batch_size = images.size(0) |
|
hidden_states = self.embeddings(images) |
|
routing_features = torch.mean(hidden_states[:, 1:, :], dim=1) |
what is the reason for this? I want to implement the offline OmniAiD-DINO reward without GAN-style training.
Thanks~
I have noticed that there are some differences between the training and inference of omniaid.
During training, using
RealGen/RealGen_v2/flow_grpo/aigidetect_model/OmniAID.py
Lines 250 to 258 in 35de0a2
During inference, using
RealGen/RealGen_v1/flow_grpo/reward-server/reward_server/omniaid_scorer.py
Lines 86 to 89 in 35de0a2
what is the reason for this? I want to implement the offline OmniAiD-DINO reward without GAN-style training.
Thanks~