Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Unable to download pretrain model.HTTP error 409

Đang mở
#170 3 bình luận 8 reaction 0 người được giao Xem trên GitHub

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 trong graphormer/pretrain/init.py, đặc biệt là load_pretrained_model và mục PRETRAINED_MODEL_URLS được sử dụng trong quá trình chạy graphormer/evaluate/evaluate.py. Kiểm tra URL checkpoint đã cấu hình và chạy evaluate.py; hoàn thành có nghĩa là mô hình pretrained được tải xuống mà không gặp HTTP 409 và quá trình đánh giá tiếp tục sau bước tải mô hình.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

thanks for your delicate project.when I ran the evluate.py , it brake off at model-downloading stage. The error message was Traceback (most recent call last): File "/data/Graphormer/graphormer/evaluate/evaluate.py", line 130, in <module> main() File "/data/Graphormer/graphormer/evaluate/evaluate.py", line 120, in main eval(args, True, logger=logger) File "/data/Graphormer/graphormer/evaluate/evaluate.py", line 27, in eval model = task.build_model(cfg.model) File "/data/Graphormer/graphormer/tasks/graph_prediction.py", line 229, in build_model model = models.build_model(cfg, self) File "/data/fairseq/fairseq/models/__init__.py", line 105, in build_model return model.build_model(cfg, task) File "/data/Graphormer/graphormer/models/graphormer.py", line 149, in build_model return cls(args, encoder) File "/data/Graphormer/graphormer/models/graphormer.py", line 43, in __init__ self.load_state_dict(load_pretrained_model(args.pretrained_model_name)) File "/data/Graphormer/graphormer/pretrain/__init__.py", line 15, in load_pretrained_model return load_state_dict_from_url(PRETRAINED_MODEL_URLS[pretrained_model_name], progress=True)["model"] File "/opt/mamba/envs/graphormer/lib/python3.9/site-packages/torch/hub.py", line 571, in load_state_dict_from_url download_url_to_file(url, cached_file, hash_prefix, progress=progress) File "/opt/mamba/envs/graphormer/lib/python3.9/site-packages/torch/hub.py", line 437, in download_url_to_file u = urlopen(req) File "/opt/mamba/envs/graphormer/lib/python3.9/urllib/request.py", line 214, in urlopen return opener.open(url, data, timeout) File "/opt/mamba/envs/graphormer/lib/python3.9/urllib/request.py", line 523, in open response = meth(req, response) File "/opt/mamba/envs/graphormer/lib/python3.9/urllib/request.py", line 632, in http_response response = self.parent.error( File "/opt/mamba/envs/graphormer/lib/python3.9/urllib/request.py", line 561, in error return self._call_chain(*args) File "/opt/mamba/envs/graphormer/lib/python3.9/urllib/request.py", line 494, in _call_chain result = func(*args) File "/opt/mamba/envs/graphormer/lib/python3.9/urllib/request.py", line 641, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 409: Public access is not permitted on this storage account. (graphormer) root@bohrium-17396-1029993:/data/Graphormer/graphormer/evaluate# (graphormer) root@bohrium-17396-1029993:/data/Graphormer/graphormer/evaluate# vi /data/Graphormer/graphormer/pretrain/__init__.py (graphormer) root@bohrium-17396-1029993:/data/Graphormer/graphormer/evaluate# vi /data/Graphormer/graphormer/pretrain/__init__.py (graphormer) root@bohrium-17396-1029993:/data/Graphormer/graphormer/evaluate# wget https://ml2md.blob.core.windows.net/graphormer-ckpts/checkpoint_best_pcqm4mv1.pt --2023-07-21 15:07:36-- https://ml2md.blob.core.windows.net/graphormer-ckpts/checkpoint_best_pcqm4mv1.pt Resolving ml2md.blob.core.windows.net (ml2md.blob.core.windows.net)... 20.150.87.132 Connecting to ml2md.blob.core.windows.net (ml2md.blob.core.windows.net)|20.150.87.132|:443... connected. HTTP request sent, awaiting response... 409 Public access is not permitted on this storage account. 2023-07-21 15:07:37 ERROR 409: Public access is not permitted on this storage account..

When I download the model url https://ml2md.blob.core.windows.net/graphormer-ckpts/checkpoint_best_pcqm4mv1.pt manually using wget, it gave the same HTTP error.

My question is how could I fix the bug?

Ngôn ngữ chính
Python
Star
2.5k
Fork
374
Merge trung bình
14 giờ 51 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/Graphormer

Tất cả issue của microsoft/Graphormer

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.