roboflow / notebooks

Examples and tutorials on using SOTA computer vision models and techniques. Learn everything from old-school ResNet, through YOLO and object-detection transformers like DETR, to the latest models like Grounding DINO and SAM.
https://roboflow.com/models
4.89k stars 759 forks source link

from thop import profile #150

Closed SuryaPrakash0201 closed 1 year ago

SuryaPrakash0201 commented 1 year ago

Search before asking

Notebook name

https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-and-count-vehicles-with-yolov8.ipynb#scrollTo=lAFba4GkombF

Bug

ModuleNotFoundError Traceback (most recent call last) in <cell line: 23>() 21 22 ---> 23 import yolox 24 print("yolox.version:", yolox.version)

2 frames /content/ByteTrack/yolox/init.py in 2 # -- coding:utf-8 -- 3 ----> 4 from .utils import configure_module 5 6 configure_module()

/content/ByteTrack/yolox/utils/init.py in 12 from .lr_scheduler import LRScheduler 13 from .metric import ---> 14 from .model_utils import 15 from .setup_env import 16 from .visualize import

/content/ByteTrack/yolox/utils/model_utils.py in 5 import torch 6 import torch.nn as nn ----> 7 from thop import profile 8 9 from copy import deepcopy

ModuleNotFoundError: No module named 'thop'


NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the "Open Examples" button below.

Environment

Colab

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

github-actions[bot] commented 1 year ago

πŸ‘‹ Hello @SuryaPrakash0201, thank you for leaving an issue on Roboflow Notebooks.

🐞 Bug reports

If you are filing a bug report, please be as detailed as possible. This will help us more easily diagnose and resolve the problem you are facing. To learn more about contributing, check out our Contributing Guidelines.

If you require support with custom code that is not part of Roboflow Notebooks, please reach out on the Roboflow Forum or on the GitHub Discussions page associated with this repository.

πŸ’¬ Get in touch

Do you have more questions about Roboflow that we haven't responded to yet? Feel free to ask them on the Roboflow Discuss forum. Our developer advocates and community team actively respond to questions there.

To ask questions about Notebooks, head over to the GitHub Discussions section of this repository.

SkalskiP commented 1 year ago

Hi @SuryaPrakash0201 πŸ‘‹πŸ» ! Thanks a lot for bringing that problem to my attention. Looks like a duplicate of #106.