GithubHelp home page GithubHelp logo

asset does not exist about ultralytics HOT 19 CLOSED

udayzee05 avatar udayzee05 commented on May 22, 2024
asset does not exist

from ultralytics.

Comments (19)

Laughing-q avatar Laughing-q commented on May 22, 2024 2

@AyushExel

Error executing job with overrides: ['task=detect', 'mode=predict', 'model=yolov8s.pt', 'source=0']

I think it's because hydra parsed the 0 in source=0 to str.

from ultralytics.

AyushExel avatar AyushExel commented on May 22, 2024 2

@Laughing-q yeah its treating 0 as null and predicts on the default assets. But it doesn't throw any error for me

from ultralytics.

glenn-jocher avatar glenn-jocher commented on May 22, 2024 1

@udayzee05 your issue may be resolved now in PR #256 that I just merged. Please update your code and let us know if this resolves the issue for you, thank you!

from ultralytics.

AyushExel avatar AyushExel commented on May 22, 2024

@udayzee05 thanks for reporting. Can you please provide the command to reproduce?

from ultralytics.

udayzee05 avatar udayzee05 commented on May 22, 2024

yolo task=detect mode=predict model=yolov8n.pt source="https://ultralytics.com/images/bus.jpg" I tried with this command as well but same result

from ultralytics.

udayzee05 avatar udayzee05 commented on May 22, 2024

Thank you, I was trying to pass 0 for webcam, but I am able to run successfully for images stored in local directory, Thank for clarification.

from ultralytics.

AyushExel avatar AyushExel commented on May 22, 2024

@udayzee05 Does this work for you now?

from ultralytics.

udayzee05 avatar udayzee05 commented on May 22, 2024

Yes, but for webcam what will be argument ?

from ultralytics.

AyushExel avatar AyushExel commented on May 22, 2024

Awesome

from ultralytics.

Laughing-q avatar Laughing-q commented on May 22, 2024

@AyushExel

cfg.source = cfg.source or ROOT / "assets"

source becomes ultralytics/assets after this line if you pass source=0

from ultralytics.

AyushExel avatar AyushExel commented on May 22, 2024

@Laughing-q yeah that's what I meant.. hydra is treating "0" as None..not a string..we'll need a different syntax for webcam

from ultralytics.

udayzee05 avatar udayzee05 commented on May 22, 2024

Yes, even I tried to pass it as string as well as integer but getting error

from ultralytics.

AyushExel avatar AyushExel commented on May 22, 2024

yeah, I can reproduce. that is strange.

from ultralytics.

zldrobit avatar zldrobit commented on May 22, 2024

I could reproduce this problem on Colab with the default source argument, as follows
image

The version of ultralytics pip package is 8.0.6
image

from ultralytics.

Laughing-q avatar Laughing-q commented on May 22, 2024

@zldrobit hey I tested with the same command by using this colab https://colab.research.google.com/github/ultralytics/ultralytics/blob/main/examples/tutorial.ipynb. But it works fine to me, probably there's something wrong with your installation, could check it again?
image

from ultralytics.

zldrobit avatar zldrobit commented on May 22, 2024

@Laughing-q I think I may find the origin of the problem. If I skip cloning the ultralytics GitHub repo, the error still occurs
image

Otherwise, I could also get detection results.
image

Plz note that the missing images are under /usr/local/lib/python3.8/dist-package, but the existing images are in /content/ultralytics being the ROOT path. I guess these images are not packaged in the PyPI wheel, so barely pip install is not able to download them.

from ultralytics.

TIBREWA avatar TIBREWA commented on May 22, 2024

Hey @udayzee05 did you fix the ultralytics issue because i am facing the same issue and i am unable to fix it, if yes please tell me how can i fix it

from ultralytics.

shaowngp avatar shaowngp commented on May 22, 2024

My issue has been resolved after putting source= 'ultralytics/' ; providing Ultralytics root path.

!python predict.py model='best.pt' source='/content/gdrive/MyDrive/yolov8/ultralytics/' data='/content/gdrive/MyDrive/yolov8/ultralytics/xyz.mp4'

2023-11-03 05:49:40.932793: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-11-03 05:49:40.932848: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-11-03 05:49:40.932883: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-11-03 05:49:40.940297: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-11-03 05:49:42.094048: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Ultralytics YOLOv8.0.3 πŸš€ Python-3.10.12 torch-2.1.0+cu118 CUDA:0 (Tesla T4, 15102MiB)
Fusing layers...
Model summary: 218 layers, 25840339 parameters, 0 gradients, 78.7 GFLOPs
image 1/2 /content/gdrive/MyDrive/yolov8/ultralytics/figure1.png: 384x640 1 licence, 74.4ms
image 2/2 /content/gdrive/MyDrive/yolov8/ultralytics/figure3.png: 384x640 1 licence, 25.8ms
Speed: 0.5ms pre-process, 50.1ms inference, 2.4ms postprocess per image at shape (1, 3, 640, 640)
Results saved to /content/gdrive/MyDrive/yolov8/runs/detect/train6

from ultralytics.

glenn-jocher avatar glenn-jocher commented on May 22, 2024

@shaowngp great to hear that your issue has been resolved by providing the correct root path for Ultralytics as your source. It appears the initially configured root path couldn't find the necessary files. Now, the program can successfully locate them and everything runs smoothly. The TensorFlow errors that are being shown are warnings and should not impact the overall functionality of YOLOv8, those are related to the TensorFlow-TensorRT integration and not finding TensorRT, which is a high-performance deep learning inference optimizer and runtime library. Lastly, Ultralytics YOLOv8 seems to be working efficiently as indicated by the speed of the pre-process, inference, and postprocess per image.

from ultralytics.

Related Issues (20)

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.