Skip to content

I want to increase learning_rate and train_workers, is that possible?  #35

Description

@nDBac14

@pythonlessons please help me

Activity

  1. pythonlessons commented on Oct 20, 2023

    @pythonlessons
    Owner

    Which tutorial? Simply change these values and you good to go

  2. nDBac14 commented on Oct 20, 2023

    @nDBac14
    Author

    image
    I want to change the values in the config file to increase training speed, is it possible? @pythonlessons

  3. pythonlessons commented on Oct 20, 2023

    @pythonlessons
    Owner

    it really depends on your machine, if your GPU is used 100% batch size and workers number will not help, then you need to change model architecture or input size or other stuff

  4. nDBac14 commented on Oct 20, 2023

    @nDBac14
    Author

    image
    This is my computer configuration, I find the train is very slow, and it can only be turned off after more than 100 trains.

  5. pythonlessons commented on Oct 20, 2023

    @pythonlessons
    Owner

    So, you are training model on CPU. That's why it takes a lot of time. You should train it on GPU, if you don't have one try to use google collab and try training on free GPU

  6. nDBac14 commented on Oct 20, 2023

    @nDBac14
    Author

    image
    I'm also configuring training using GPU like you. I also tried using google collab but I found it too slow @pythonlessons

  7. pythonlessons commented on Oct 20, 2023

    @pythonlessons
    Owner

    I am configuring only ram, not reserving all possible GPU ram, you need to make sure your system can see GPU device (install drivers, CUDA, cuDNN).

  8. nDBac14 commented on Oct 20, 2023

    @nDBac14
    Author

    image
    I can see the GPU but when I run the train it still only runs through the CPU @pythonlessons

  9. nDBac14 commented on Oct 21, 2023

    @nDBac14
    Author

    image
    I noticed that if I trained more than 100 times, I would get this error. I also tried searching the val.csv file in the model and only got 1726 records while my dataset had more than 20 thousand images.
    image
    @pythonlessons please help me

  10. pythonlessons commented on Oct 21, 2023

    @pythonlessons
    Owner

    You received this error, because you try to convert model to onnx, but your GPU is too old to support it. You need to convert it manually using cpu onnx version. Your 20k images dataset should be split into train and validation, check how much data you had in your train.csv

  11. nDBac14 commented on Oct 21, 2023

    @nDBac14
    Author

    You received this error, because you try to convert model to onnx, but your GPU is too old to support it. You need to convert it manually using cpu onnx version. Your 20k images dataset should be split into train and validation, check how much data you had in your train.csv

    I checked that the train runs entirely on CPU and not on GPU. I tried print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU'))) returned = 0, is there any way to fix it? fix this error?

  12. nDBac14 commented on Oct 21, 2023

    @nDBac14
    Author

    image
    this is the data in my train.csv

  13. pythonlessons commented on Oct 27, 2023

    @pythonlessons
    Owner

    solved?

  14. nDBac14 commented on Oct 27, 2023

    @nDBac14
    Author

    solved

    oh no friend. I have fixed the error and trained with GPU, but when I train I am encountering an Early stopping error. I will train again and send you specific images. Hope you will help me

  15. pythonlessons commented on Oct 27, 2023

    @pythonlessons
    Owner

    Early stopping is not an error, its a function, if you model is not learning enough, increase early stopping patience, try playing around with learning rate or even model. Maybe you images are hard to crack

  16. nDBac14 commented on Oct 27, 2023

    @nDBac14
    Author

    Early stopping is not an error, its a function, if you model is not learning enough, increase early stopping patience, try playing around with learning rate or even model. Maybe you images are hard to crack

    My captcha has 6 characters, do I need to change the model?

  17. pythonlessons commented on Oct 30, 2023

    @pythonlessons
    Owner

    no, you dont

  18. nDBac14 commented on Nov 8, 2023

    @nDBac14
    Author

    no, you dont

    Can you solve the image pulling captcha and image rotation captcha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions