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

How can i use pip version? #1452

Closed
kadirnar opened this issue Jul 26, 2022 · 4 comments
Closed

How can i use pip version? #1452

kadirnar opened this issue Jul 26, 2022 · 4 comments

Comments

@kadirnar
Copy link

Hi @FateScript ,

I want to write prediction code using yolox-pip. Can you share documentation about it?

@FateScript
Copy link
Member

Sorry, I couldn't catch your meaning of using yolox-pip? If you write code in yolox, and it's merged by main branch, your prediction code will be included automaticlly after a new release.

@kadirnar
Copy link
Author

I want to do "pip install yolox" instead of "git clone" to use the Yolox library. When I do "pip install yolox", I need to know which functions are imported.

Example(Yolov5-Pip):

import yolov5

# load custom model
model = yolov5.load('train/best.pt')
  
# set model parameters
model.conf = 0.25  # NMS confidence threshold
model.iou = 0.45  # NMS IoU threshold
model.agnostic = False  # NMS class-agnostic
model.multi_label = False  # NMS multiple labels per box
model.max_det = 1000  # maximum number of detections per image

# set image
img = 'https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg'

# perform inference
results = model(img)

Repo Link: https://github.com/fcakyon/yolov5-pip

@kadirnar
Copy link
Author

Hi @FateScript ,

Error Message:

ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects      

This library does not have windows support.
cocodataset/cocoapi#9

Can you add this for windows users?
https://pypi.org/project/pycocotools-windows/

@FateScript
Copy link
Member

@kadirnar All method could be found in __init__.py, for YOLOX, no method is imported when import yolox; For yolov5 that you metioned, it could be found here.

As for cocoapi, did you check the windows version?

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