Binary pretrained model can't train a multi-class classifier?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python, pytorch
- Lĩnh vực
- machine-learning
Hướng nghiên cứu
Bắt đầu với lời gọi GraphormerForGraphClassification.from_pretrained và ví dụ graphml-classification.md, sau đó tái tạo script Python bằng checkpoint clefourrier/graphormer-base-pcqm4mv2 và 168 lớp. Kiểm tra xem classifier-size warning hay tiến trình huấn luyện bị đình trệ mới là vấn đề cần xử lý; hoàn tất khi quá trình huấn luyện đa lớp tiếp tục diễn ra hoặc lỗi được giải thích rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I use model_checkpoint = "clefourrier/graphormer-base-pcqm4mv2" # pre-trained model from which to fine-tune
to be my pretrained model, and my dataset is here.
I follow the code in this website.
But change the
model = GraphormerForGraphClassification.from_pretrained(
model_checkpoint,
# We have 167 attack patterns and 1 benign
num_classes=168,
# provide this in case you're planning to fine-tune an already fine-tuned checkpoint
ignore_mismatched_sizes = True,
Since I have 168 class to be classified.
Then when I run the python script, I encountered:
Some weights of GraphormerForGraphClassification were not initialized from the model checkpoint at clefourrier/graphormer-base-pcqm4mv2 and are newly initialized because the shapes did not match:
- classifier.classifier.weight: found shape torch.Size([1, 768]) in the checkpoint and torch.Size([168, 768]) in the model instantiated
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
0%| | 0/23120 [00:00<?, ?it/s]
For about 20 min, the log didn't move at all.
- Ngôn ngữ chính
- Python
- Star
- 2.5k
- Fork
- 374
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 microsoft/Graphormer
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/Graphormer#211 ·
-
SAS updata Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
microsoft/Graphormer#210 ·
-
Interpolation between states Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
microsoft/Graphormer#208 ·
-
CUDA out of memory Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
microsoft/Graphormer#207 · 1 bình luận ·
-
How do I prepare OC20 dataset? Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
microsoft/Graphormer#205 ·
Tất cả issue của microsoft/Graphormer
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
-
hcocena Đang mởpolicies-accepted pre-review precheck-passed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Bioconductor/BiocContributions#214 · 5 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
TencentCloud/Octop#1169 · 1 bình luận ·
-
[开源推荐] 在老板拷问你之前,先让 AI 灵魂拷问你 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
521xueweihan/HelloGitHub#3778 ·
-
The version checker's trailing attribute region has no control for a less-than inside a quoted value Đang mởarea: dashboard area: tests bug perceived difficulty: 2 python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Nitjsefnie-Harness-Commons/daedalus#1105 · 1 bình luận ·