Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The HuggingFace Spaces Pets repository may need update #65

Open
OssamaEls opened this issue Mar 26, 2023 · 0 comments
Open

The HuggingFace Spaces Pets repository may need update #65

OssamaEls opened this issue Mar 26, 2023 · 0 comments

Comments

@OssamaEls
Copy link

OssamaEls commented Mar 26, 2023

If I try to look at the app I get a Runtime error
https://huggingface.co/spaces/jph00/pets

Maybe a dependency issue?

Here is the log

Container logs:

mq92j 2023-03-16T09:49:18.819Z /home/user/.local/lib/python3.8/site-packages/gradio/inputs.py:256: UserWarning: Usage of gradio.inputs is deprecated, and will not be supported in the future, please import your component from gradio.components
mq92j 2023-03-16T09:49:18.819Z   warnings.warn(
mq92j 2023-03-16T09:49:18.819Z /home/user/.local/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `optional` parameter is deprecated, and it has no effect
mq92j 2023-03-16T09:49:18.819Z   warnings.warn(value)
mq92j 2023-03-16T09:49:18.819Z /home/user/.local/lib/python3.8/site-packages/gradio/outputs.py:196: UserWarning: Usage of gradio.outputs is deprecated, and will not be supported in the future, please import your components from gradio.components
mq92j 2023-03-16T09:49:18.819Z   warnings.warn(
mq92j 2023-03-16T09:49:18.819Z /home/user/.local/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: The 'type' parameter has been deprecated. Use the Number component instead.
mq92j 2023-03-16T09:49:18.819Z   warnings.warn(value)
mq92j 2023-03-16T09:49:18.875Z /home/user/.local/lib/python3.8/site-packages/gradio/interface.py:313: UserWarning: Currently, only the 'default' theme is supported.
mq92j 2023-03-16T09:49:18.875Z   warnings.warn("Currently, only the 'default' theme is supported.")
mq92j 2023-03-16T09:49:19.412Z IMPORTANT: You are using gradio version 3.1.1, however version 3.14.0 is available, please upgrade.
mq92j 2023-03-16T09:49:19.412Z --------
mq92j 2023-03-16T09:49:19.413Z Caching examples at: '/home/user/app/gradio_cached_examples/12/log.csv'
mq92j 2023-03-16T09:49:19.439Z Traceback (most recent call last):
mq92j 2023-03-16T09:49:19.439Z   File "app.py", line 26, in <module>
mq92j 2023-03-16T09:49:19.439Z     intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
mq92j 2023-03-16T09:49:19.439Z   File "/home/user/.local/lib/python3.8/site-packages/gradio/interface.py", line 599, in __init__
mq92j 2023-03-16T09:49:19.440Z     self.examples_handler = Examples(
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 154, in __init__
mq92j 2023-03-16T09:49:19.440Z     self.cache_interface_examples()
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 189, in cache_interface_examples
mq92j 2023-03-16T09:49:19.440Z     raise e
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 185, in cache_interface_examples
mq92j 2023-03-16T09:49:19.440Z     prediction = self.process_example(example_id)
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 205, in process_example
mq92j 2023-03-16T09:49:19.440Z     predictions = self.fn(*processed_input)
mq92j 2023-03-16T09:49:19.440Z   File "app.py", line 17, in classify_image
mq92j 2023-03-16T09:49:19.440Z     pred,idx,probs = learn.predict(img)
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/fastai/learner.py", line 321, in predict
mq92j 2023-03-16T09:49:19.440Z     inp,preds,_,dec_preds = self.get_preds(dl=dl, with_input=True, with_decoded=True)
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/fastai/learner.py", line 308, in get_preds
mq92j 2023-03-16T09:49:19.440Z     self._do_epoch_validate(dl=dl)
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/fastai/learner.py", line 244, in _do_epoch_validate
mq92j 2023-03-16T09:49:19.440Z     with torch.no_grad(): self._with_events(self.all_batches, 'validate', CancelValidException)
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/fastai/learner.py", line 199, in _with_events
mq92j 2023-03-16T09:49:19.440Z     try: self(f'before_{event_type}');  f()
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/fastai/learner.py", line 205, in all_batches
mq92j 2023-03-16T09:49:19.440Z     for o in enumerate(self.dl): self.one_batch(*o)
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/fastai/learner.py", line 235, in one_batch
mq92j 2023-03-16T09:49:19.440Z     self._with_events(self._do_one_batch, 'batch', CancelBatchException)
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/fastai/learner.py", line 199, in _with_events
mq92j 2023-03-16T09:49:19.440Z     try: self(f'before_{event_type}');  f()
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/fastai/learner.py", line 216, in _do_one_batch
mq92j 2023-03-16T09:49:19.440Z     self.pred = self.model(*self.xb)
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
mq92j 2023-03-16T09:49:19.440Z     return forward_call(*input, **kwargs)
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/container.py", line 141, in forward
mq92j 2023-03-16T09:49:19.440Z     input = module(input)
mq92j 2023-03-16T09:49:19.440Z   File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
mq92j 2023-03-16T09:49:19.441Z     return forward_call(*input, **kwargs)
mq92j 2023-03-16T09:49:19.441Z   File "/home/user/.local/lib/python3.8/site-packages/fastai/vision/learner.py", line 177, in forward
mq92j 2023-03-16T09:49:19.441Z     def forward(self,x): return self.model.forward_features(x) if self.needs_pool else self.model(x)
mq92j 2023-03-16T09:49:19.441Z   File "/home/user/.local/lib/python3.8/site-packages/timm/models/convnext.py", line 397, in forward_features
mq92j 2023-03-16T09:49:19.441Z     x = self.stem(x)
mq92j 2023-03-16T09:49:19.441Z   File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
mq92j 2023-03-16T09:49:19.441Z     return forward_call(*input, **kwargs)
mq92j 2023-03-16T09:49:19.441Z   File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/container.py", line 141, in forward
mq92j 2023-03-16T09:49:19.441Z     input = module(input)
mq92j 2023-03-16T09:49:19.441Z   File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
mq92j 2023-03-16T09:49:19.441Z     return forward_call(*input, **kwargs)
mq92j 2023-03-16T09:49:19.441Z   File "/home/user/.local/lib/python3.8/site-packages/timm/models/layers/norm.py", line 67, in forward
mq92j 2023-03-16T09:49:19.441Z     if self._fast_norm:
mq92j 2023-03-16T09:49:19.441Z   File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1185, in __getattr__
mq92j 2023-03-16T09:49:19.441Z     raise AttributeError("'{}' object has no attribute '{}'".format(
mq92j 2023-03-16T09:49:19.441Z AttributeError: 'LayerNorm2d' object has no attribute '_fast_norm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant