Coder Social home page Coder Social logo

Comments (5)

MohamedAtef321 avatar MohamedAtef321 commented on August 11, 2024

Hello Ammar,

The code in the repo doesn't work as we tried to merge it with the latest update of YOLOv8.
If you want to try it, Please clone this repo (https://github.com/MohamedAtef321/ultralytics/tree/lane_detection) on the branch named "lane_detection"

I am willing to hear your feedback.

from yolov8-extended-edition.

ammar-deep avatar ammar-deep commented on August 11, 2024

I clone the repo you mentioned and tried the same command however I get the same error as above. I have tried with both flags separately i.e. --night_vision, --lane_detection and error is same.

from yolov8-extended-edition.

MohamedAtef321 avatar MohamedAtef321 commented on August 11, 2024

Are you sure you cloned the repo (https://github.com/MohamedAtef321/ultralytics) on branch "lane_detection" specifically ?
you could try

git clone https://github.com/MohamedAtef321/ultralytics/tree/lane_detection --branch lane_detection

because the main branch is not working right now.
after cloning this repo, open terminal and enter "Ultralytics" folder and run this code

pip install -e '.[dev]' --quiet

and wait for it to finish, then try this code

yolo detect predict model=yolov8n.pt source=0 night_vision=show image_gamma=0.8

from yolov8-extended-edition.

ammar-deep avatar ammar-deep commented on August 11, 2024

So I followed your suggestions. Now I am getting the following error.

File "..../ultralytics/ultralytics/yolo/v8/detect/predict.py", line 23, in preprocess
img = (img if isinstance(img, torch.Tensor) else torch.from_numpy(img)).to(self.model.device)

TypeError: expected np.ndarray (got list)
Aborted (core dumped)

from yolov8-extended-edition.

MohamedAtef321 avatar MohamedAtef321 commented on August 11, 2024

Could you tell me what platform you run the model on ?
and give me more details

from yolov8-extended-edition.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.