Unable to replicate Results
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- machine-learning
Hướng nghiên cứu
No repository files or tests are identified. Start by tracing load_model(args), the encoder and head construction, and the torch.load/model.head.load_state_dict path, then compare them with the paper and Hugging Face CLIP-ViT-L-14 setup; done means identifying why the initial BCE loss differs and documenting a reproducible result.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello,
I am currently trying to test your model's weights with some data, but I am encountering some issues. I have set up the final linear layer as per your design, and am using the Clip-Vit-L-14 weights from Hugging Face. Despite following the methodology outlined in your paper and implementing it in my own model, the results don't seem to match the expected outcomes.
Here is a brief outline of my current setup:
class SingleLayerHead(nn.Module):
def __init__(self, input_size: int, output_size: int):
super().__init__()
self.fc = nn.Linear(input_size, output_size)
def forward(self, features, **kwargs):
return self.fc(features)
class ImageBatchClassifier(LightningModule):
def __init__(
self,
config: Dict[str, Any],
encoder: nn.Module,
head: nn.Module,
loss: nn.Module,
):
super().__init__()
self.config = config
self.encoder = encoder
self.head = head
self.loss = loss
# Here we freeze all the weights of the encoder
for param in self.encoder.parameters():
param.requires_grad = False
if __name__=="__main__":
model = load_model(args)
state_dict = torch.load("your_weights",map_location='cpu')
state_dict = {'fc.'+k: v for k, v in state_dict.items()}
model.head.load_state_dict(state_dict)
As can be seen, I've frozen all the weights of the encoder. When running the code, the initial Binary Cross Entropy (BCE) Loss is surprisingly high, starting around 5.
I'd appreciate any guidance or suggestions on what could be the possible reasons for this issue, and how to resolve it.
Thank you in advance
Edit.: This is not the working code, just an simple implementation idea
- Ngôn ngữ chính
- Python
- Star
- 379
- Fork
- 60
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của WisconsinAIVision/UniversalFakeDetect
-
扩散模型的数据数量是不是有问题Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
WisconsinAIVision/UniversalFakeDetect#31 · 1 bình luận ·
-
BUG: --result_folder DeletionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
WisconsinAIVision/UniversalFakeDetect#29 · 1 reaction ·
-
dataset is unavailableĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
WisconsinAIVision/UniversalFakeDetect#28 · 4 bình luận ·
-
about methodĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
Tất cả issue của WisconsinAIVision/UniversalFakeDetect
Issue tương tự
-
HandyModRTransform.deriv3 is wrong for m > 2Có thể đã có người làm @SajalDevX đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
read_messages: the first read after subscribe/psubscribe returns no messages even when some are waitingCó thể đã có người làm @matheussilvano đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
The-Swarm-Corporation/swarms-framework-docs#399 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bump patch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
autowarefoundation/autoware_carla_scenario#1321 ·
Maintainer thường phản hồi trong vòng 1 ngày