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

AttributeError: On Streamlit #3

Closed
kasirahouse opened this issue Mar 29, 2022 · 2 comments
Closed

AttributeError: On Streamlit #3

kasirahouse opened this issue Mar 29, 2022 · 2 comments

Comments

@kasirahouse
Copy link

AttributeError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).

image

Traceback:
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/scriptrunner/script_runner.py", line 443, in _run_script
exec(code, module.dict)
File "/app/yolov5-streamlit/main.py", line 105, in
detect(opt)
File "/app/yolov5-streamlit/detect.py", line 77, in detect
pred = model(img, augment=opt.augment)[0]
File "/home/appuser/venv/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/app/yolov5-streamlit/models/yolo.py", line 123, in forward
return self.forward_once(x, profile) # single-scale inference, train
File "/app/yolov5-streamlit/models/yolo.py", line 139, in forward_once
x = m(x) # run
File "/home/appuser/venv/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/home/appuser/venv/lib/python3.7/site-packages/torch/nn/modules/upsampling.py", line 154, in forward
recompute_scale_factor=self.recompute_scale_factor)
File "/home/appuser/venv/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1186, in getattr
type(self).name, name))

@xugaoxiang
Copy link
Owner

Update requirements and now it works.

@kasirahouse
Copy link
Author

Thank you

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

2 participants