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

Requirements of BlumTelegramWindow #1

Open
dinhsang1999 opened this issue Dec 30, 2024 · 6 comments
Open

Requirements of BlumTelegramWindow #1

dinhsang1999 opened this issue Dec 30, 2024 · 6 comments

Comments

@dinhsang1999
Copy link

I used the code to my account on my device. But these click is wrong and alway click bomb. I think the code need one minimize device`s requirement.
My device do not have GPU. So I need your advise?

And How to your train your model, maybe I can train model on my device, it will be get more accurancy.

@behroozUAC
Copy link
Owner

I used the code to my account on my device. But these click is wrong and alway click bomb. I think the code need one minimize device`s requirement. My device do not have GPU. So I need your advise?

And How to your train your model, maybe I can train model on my device, it will be get more accurancy.

You definitely need a GPU to run the model smoothly, without delays or errors.
Otherwise, you’ll need a CPU with at least 14 cores and 20 threads to ensure it runs error free.

@Alirezaafshar20
Copy link

I have already tried installing the ultralytics package using pip, but it seems that the installation is unsuccessful. I also ensured that all dependencies are up to date, but the issue persists.

Could you please assist me in resolving this issue? Any guidance or steps to ensure that the module is installed correctly would be greatly appreciated.

@behroozUAC
Copy link
Owner

I have already tried installing the ultralytics package using pip, but it seems that the installation is unsuccessful. I also ensured that all dependencies are up to date, but the issue persists.

Could you please assist me in resolving this issue? Any guidance or steps to ensure that the module is installed correctly would be greatly appreciated.

Hi ,what issue ? Please specify the exact error

@dinhsang1999
Copy link
Author

Thank your solution, it work. I ran the code with GPU.

@dinhsang1999
Copy link
Author

Sir, could you give me some tutor to easy train the model which detect some project like this. How to label data or create data to train?

@behroozUAC
Copy link
Owner

behroozUAC commented Jan 10, 2025

Sir, could you give me some tutor to easy train the model which detect some project like this. How to label data or create data to train?

First, I made sure Python 3.7 or higher was installed, and then I grabbed the YOLO framework by running:

pip install ultralytics

Next, I gathered some Blum images I wanted to detect and labeled them using LabelImg. I made sure the labels were in YOLO format:

class_id x_center y_center width height

Here, the class_id is the object type, and the rest are box coordinates normalized to the image size.

After organizing everything into folders like this:

dataset/
├── images/
│   ├── train/ (training images)
│   ├── val/ (validation images)
├── labels/
│   ├── train/ (training labels)
│   ├── val/ (validation labels)

I wrote a quick script to start training:

from ultralytics import YOLO

# Load the model
model = YOLO('yolov8n.pt')  # Using the nano version for speed

# Train the model
model.train(
    data='data.yaml',  # Path to your data config
    epochs=50,
    imgsz=640,
    batch=16
)

The model logs its progress and saves the best version automatically. After training, I tested it on some new images:

model.predict(source='path_to_test_images/', save=True)

For deployment, exporting the model to ONNX or another format was a breeze:

model.export(format='onnx')

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

3 participants