Spaces:
Runtime error
Runtime error
runtime error
Container logs:
cbh5p 2023-03-23T18:50:54.574Z Cloning into 'pixel'...
cbh5p 2023-03-23T18:50:58.380Z
Downloading: 0%| | 0.00/235 [00:00<?, ?B/s]
Downloading: 100%|██████████| 235/235 [00:00<00:00, 378kB/s]
cbh5p 2023-03-23T18:50:58.756Z
Downloading: 0%| | 0.00/14.9M [00:00<?, ?B/s]
Downloading: 58%|█████▊ | 8.64M/14.9M [00:00<00:00, 90.6MB/s]
Downloading: 100%|██████████| 14.9M/14.9M [00:00<00:00, 102MB/s]
cbh5p 2023-03-23T18:50:58.817Z
Downloading: 0%| | 0.00/686 [00:00<?, ?B/s]
Downloading: 100%|██████████| 686/686 [00:00<00:00, 1.02MB/s]
cbh5p 2023-03-23T18:51:06.097Z
Downloading: 0%| | 0.00/429M [00:00<?, ?B/s]
Downloading: 2%|▏ | 8.07M/429M [00:00<00:05, 84.6MB/s]
Downloading: 5%|▍ | 20.0M/429M [00:00<00:03, 108MB/s]
Downloading: 7%|▋ | 30.3M/429M [00:00<00:06, 66.2MB/s]
Downloading: 10%|▉ | 41.9M/429M [00:00<00:04, 81.9MB/s]
Downloading: 12%|█▏ | 51.0M/429M [00:00<00:06, 57.9MB/s]
Downloading: 14%|█▍ | 59.7M/429M [00:00<00:05, 65.1MB/s]
Downloading: 17%|█▋ | 71.7M/429M [00:01<00:04, 79.4MB/s]
Downloading: 19%|█▉ | 80.7M/429M [00:01<00:09, 40.0MB/s]
Downloading: 22%|██▏ | 92.7M/429M [00:01<00:06, 52.7MB/s]
Downloading: 24%|██▎ | 101M/429M [00:01<00:07, 47.4MB/s]
Downloading: 25%|██▌ | 108M/429M [00:02<00:07, 46.8MB/s]
Downloading: 27%|██▋ | 114M/429M [00:02<00:06, 48.8MB/s]
Downloading: 29%|██▉ | 125M/429M [00:02<00:07, 44.9MB/s]
Downloading: 31%|███ | 133M/429M [00:02<00:05, 52.3MB/s]
Downloading: 34%|███▍ | 145M/429M [00:02<00:04, 66.2MB/s]
Downloading: 36%|███▌ | 153M/429M [00:02<00:04, 61.0MB/s]
Downloading: 39%|███▊ | 165M/429M [00:02<00:03, 75.2MB/s]
Downloading: 40%|████ | 174M/429M [00:03<00:04, 63.9MB/s]
Downloading: 42%|████▏ | 181M/429M [00:03<00:05, 45.5MB/s]
Downloading: 44%|████▍ | 190M/429M [00:03<00:04, 51.2MB/s]
Downloading: 47%|████▋ | 200M/429M [00:03<00:04, 50.0MB/s]
Downloading: 49%|████▉ | 212M/429M [00:03<00:03, 63.5MB/s]
Downloading: 52%|█████▏ | 223M/429M [00:03<00:02, 74.5MB/s]
Downloading: 54%|█████▍ | 231M/429M [00:04<00:04, 44.7MB/s]
Downloading: 56%|█████▌ | 240M/429M [00:04<00:03, 52.6MB/s]
Downloading: 58%|█████▊ | 250M/429M [00:04<00:03, 48.2MB/s]
Downloading: 61%|██████ | 262M/429M [00:04<00:02, 61.5MB/s]
Downloading: 64%|██████▎ | 273M/429M [00:04<00:02, 72.7MB/s]
Downloading: 66%|██████▌ | 282M/429M [00:05<00:02, 72.9MB/s]
Downloading: 68%|██████▊ | 292M/429M [00:05<00:01, 80.1MB/s]
Downloading: 70%|███████ | 301M/429M [00:05<00:01, 78.5MB/s]
Downloading: 72%|███████▏ | 310M/429M [00:05<00:01, 83.4MB/s]
Downloading: 75%|███████▍ | 321M/429M [00:05<00:01, 90.9MB/s]
Downloading: 77%|███████▋ | 330M/429M [00:05<00:01, 84.9MB/s]
Downloading: 80%|███████▉ | 341M/429M [00:05<00:00, 92.5MB/s]
Downloading: 82%|████████▏ | 350M/429M [00:05<00:01, 77.2MB/s]
Downloading: 84%|████████▍ | 361M/429M [00:06<00:00, 85.4MB/s]
Downloading: 87%|████████▋ | 372M/429M [00:06<00:00, 92.3MB/s]
Downloading: 89%|████████▉ | 383M/429M [00:06<00:00, 98.3MB/s]
Downloading: 92%|█████████▏| 393M/429M [00:06<00:00, 102MB/s]
Downloading: 94%|█████████▍| 403M/429M [00:06<00:00, 64.5MB/s]
Downloading: 96%|█████████▌| 411M/429M [00:06<00:00, 60.1MB/s]
Downloading: 98%|█████████▊| 422M/429M [00:06<00:00, 69.8MB/s]
Downloading: 100%|██████████| 429M/429M [00:06<00:00, 64.6MB/s]
cbh5p 2023-03-23T18:51:06.327Z Traceback (most recent call last):
cbh5p 2023-03-23T18:51:06.327Z File "app.py", line 31, in <module>
cbh5p 2023-03-23T18:51:06.327Z model = PIXELForPreTraining.from_pretrained(model_name_or_path, config=config)
cbh5p 2023-03-23T18:51:06.327Z File "/home/user/.local/lib/python3.8/site-packages/transformers/modeling_utils.py", line 1493, in from_pretrained
cbh5p 2023-03-23T18:51:06.328Z model = cls(config, *model_args, **model_kwargs)
cbh5p 2023-03-23T18:51:06.328Z File "/home/user/app/pixel/src/pixel/models/pixel/modeling_pixel.py", line 1204, in __init__
cbh5p 2023-03-23T18:51:06.328Z self.vit = PIXELModel(config)
cbh5p 2023-03-23T18:51:06.328Z File "/home/user/app/pixel/src/pixel/models/pixel/modeling_pixel.py", line 951, in __init__
cbh5p 2023-03-23T18:51:06.328Z self.embeddings = PIXELEmbeddings(config)
cbh5p 2023-03-23T18:51:06.328Z File "/home/user/app/pixel/src/pixel/models/pixel/modeling_pixel.py", line 562, in __init__
cbh5p 2023-03-23T18:51:06.328Z self.initialize_weights()
cbh5p 2023-03-23T18:51:06.328Z File "/home/user/app/pixel/src/pixel/models/pixel/modeling_pixel.py", line 566, in initialize_weights
cbh5p 2023-03-23T18:51:06.328Z pos_embed = get_2d_sincos_pos_embed(
cbh5p 2023-03-23T18:51:06.328Z File "/home/user/app/pixel/src/pixel/models/pixel/modeling_pixel.py", line 474, in get_2d_sincos_pos_embed
cbh5p 2023-03-23T18:51:06.328Z pos_embed = get_2d_sincos_pos_embed_from_grid(embed_dim, grid)
cbh5p 2023-03-23T18:51:06.328Z File "/home/user/app/pixel/src/pixel/models/pixel/modeling_pixel.py", line 485, in get_2d_sincos_pos_embed_from_grid
cbh5p 2023-03-23T18:51:06.328Z emb_h = get_1d_sincos_pos_embed_from_grid(embed_dim // 2, grid[0]) # (H*W, D/2)
cbh5p 2023-03-23T18:51:06.328Z File "/home/user/app/pixel/src/pixel/models/pixel/modeling_pixel.py", line 499, in get_1d_sincos_pos_embed_from_grid
cbh5p 2023-03-23T18:51:06.329Z omega = np.arange(embed_dim // 2, dtype=np.float)
cbh5p 2023-03-23T18:51:06.329Z File "/home/user/.local/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
cbh5p 2023-03-23T18:51:06.329Z raise AttributeError(__former_attrs__[attr])
cbh5p 2023-03-23T18:51:06.329Z AttributeError: module 'numpy' has no attribute 'float'.
cbh5p 2023-03-23T18:51:06.329Z `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
cbh5p 2023-03-23T18:51:06.329Z The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
cbh5p 2023-03-23T18:51:06.329Z https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations