-
Notifications
You must be signed in to change notification settings - Fork 132
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
Run pylot in the base system fails #251
Comments
Could you check that the detection operator finishes initializing before the callback is invoked? One way to do this is by adding a print statement after the following lines to ensure that the model is loaded: pylot/pylot/perception/detection/detection_operator.py Lines 54 to 55 in 765bbfa
|
@wutianze I also have the issue, and I am using the pre-built docker. Can you please describe @pschafhalter Is it possible the models aren't included in the docker image? |
I tried building pylot in my base system and the build process is not finished correctly because 30 series GPU doesn't support CUDA 10(you can check this issue: #250). |
@wutianze thank you. I have determined why I was getting this issue for my particular use case in the docker container. I was using the config: An example path is: And changing this to @pschafhalter Is this worth me fixing and raising a PR, also making the error a little more clear that it is the filepath that is wrong, as the current error does not indicate this. |
@JackWetherell |
I think I found the main problem. Erdos 0.4.0 changed its API and is incompatible with Pylot. |
How to solve this error. I met the same error |
Install an earlier version of erdos using pip with |
Follow the installation guide in https://pylot.readthedocs.io/en/latest/manual_installation.html. I try to run pylot in my base system. The simulation is started successfully, howerver, when running pylot using
python3 pylot.py --flagfile=configs/detection.conf
, error showsAttributeError: module 'erdos' has no attribute 'Operator'
.I think maybe the erdos version is not correct(pip install will install version erdos 0.4.0), so I changed the setup.sh (force using erdos 0.3.1), and run again. The Operator error didn't show, but I encounter new errors:
Traceback (most recent call last): File "/home/sauron/.local/lib/python3.8/site-packages/erdos/streams.py", line 114, in internal_callback callback(msg, *write_streams) File "/home/sauron/.local/lib/python3.8/site-packages/erdos/__init__.py", line 294, in wrapper return func(*args, **kwargs) File "/home/sauron/pylot/pylot/perception/detection/detection_operator.py", line 110, in on_msg_camera_stream num_detections, res_boxes, res_scores, res_classes = self.__run_model( File "/home/sauron/pylot/pylot/perception/detection/detection_operator.py", line 161, in __run_model infer = self._model.signatures['serving_default'] AttributeError: 'DetectionOperator' object has no attribute '_model'
Thank you for your help
The text was updated successfully, but these errors were encountered: