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

Inference code 'LineStringsOnImage' object has no attribute 'clip_out_of_image_' #7

Closed
ghost opened this issue Jul 7, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 7, 2021

Hi, first of all thanks for everything, great work!

I have a problem running the inference code:

python tools/detect.py configs/laneatt/resnet18_culane.py --img ./05081544_0305-005400.jpg --load_from laneatt_r18_culane.pth --savedir ./test

pretrained model: https://download.pytorch.org/models/resnet18-5c106cde.pth
Traceback (most recent call last):
File "tools/detect.py", line 84, in
process(args)
File "tools/detect.py", line 73, in process
detect.run(p)
File "tools/detect.py", line 47, in run
data = self.preprocess(data)
File "tools/detect.py", line 29, in preprocess
data = self.processes(data)
File "/content/gdrive/My Drive/Staj/lanedet/lanedet/lanedet/datasets/process/process.py", line 35, in call
data = t(data)
File "/content/gdrive/My Drive/Staj/lanedet/lanedet/lanedet/datasets/process/generate_lane_line.py", line 132, in call
line_strings.clip_out_of_image_()
AttributeError: 'LineStringsOnImage' object has no attribute 'clip_out_of_image_'

At first I got the error on this issue: #6 . Than I modify the code as you suggested and now I'm getting this AttributeError. I'm working on google colab if that's relevant.

Thank you.

@ghost
Copy link
Author

ghost commented Jul 7, 2021

Just now I tried inferencing resa and it works fine, looks like problem is about laneatt.

@Turoad
Copy link
Owner

Turoad commented Jul 8, 2021

What's the version of your imgaug? I'm using 0.4.0.

@ghost
Copy link
Author

ghost commented Jul 8, 2021

Yeah, it was 0.2.9 now I upgraded it to 0.4.0 and it works. Thanks.

@ghost ghost closed this as completed Jul 8, 2021
This issue was closed.
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