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

python download.py error #93

Open
yxkj1515 opened this issue Aug 23, 2024 · 1 comment
Open

python download.py error #93

yxkj1515 opened this issue Aug 23, 2024 · 1 comment

Comments

@yxkj1515
Copy link

omniparse# python download.py --documents --media --web
/root/miniconda3/lib/python3.12/site-packages/pydantic/_internal/fields.py:161: UserWarning: Field "model_list" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = ().
warnings.warn(

   .88888.                      oo  888888ba                                      
  d8'   `8b                         88    `8b                                     
  88     88 88d8b.d8b. 88d888b. dP a88aaaa8P' .d8888b. 88d888b. .d8888b. .d8888b. 
  88     88 88'`88'`88 88'  `88 88  88        88'  `88 88'  `88 Y8ooooo. 88ooood8 
  Y8.   .8P 88  88  88 88    88 88  88        88.  .88 88             88 88.  ... 
   `8888P'  dP  dP  dP dP    dP dP  dP        `88888P8 dP       `88888P' `88888P' 

Created by Adithya S K : https://twitter.com/adithya_s_k

[LOG] ✅ Loading OCR Model
Loaded detection model vikp/surya_det3 on device cuda with dtype torch.float16
Loaded detection model vikp/surya_layout3 on device cuda with dtype torch.float16
Loaded reading order model vikp/surya_order on device cuda with dtype torch.float16
Loaded recognition model vikp/surya_rec on device cuda with dtype torch.float16
/root/miniconda3/lib/python3.12/site-packages/transformers/tokenization_utils_base.py:1601: FutureWarning: clean_up_tokenization_spaces was not set. It will be set to True by default. This behavior will be depracted in transformers v4.45, and will be then set to False by default. For more details check this issue: huggingface/transformers#31884
warnings.warn(
Loaded texify model to cuda with torch.float16 dtype
/root/miniconda3/lib/python3.12/site-packages/transformers/models/auto/image_processing_auto.py:513: FutureWarning: The image_processor_class argument is deprecated and will be removed in v4.42. Please use slow_image_processor_class, or fast_image_processor_class instead
warnings.warn(
[LOG] ✅ Loading Vision Model
/root/miniconda3/lib/python3.12/site-packages/transformers/tokenization_utils_base.py:1601: FutureWarning: clean_up_tokenization_spaces was not set. It will be set to True by default. This behavior will be depracted in transformers v4.45, and will be then set to False by default. For more details check this issue: huggingface/transformers#31884
warnings.warn(
[LOG] ✅ Loading Audio Model
[LOG] ✅ Loading Web Crawler
Traceback (most recent call last):
File "/root/autodl-tmp/omniparse/download.py", line 23, in
download_models()
File "/root/autodl-tmp/omniparse/download.py", line 19, in download_models
load_omnimodel(args.documents, args.media, args.web)
File "/root/autodl-tmp/omniparse/omniparse/init.py", line 64, in load_omnimodel
shared_state.crawler = WebCrawler(verbose=True)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/omniparse/omniparse/web/web_crawler.py", line 39, in init
self.crawler_strategy = crawler_strategy or LocalSeleniumCrawlerStrategy(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/omniparse/omniparse/web/crawler_strategy.py", line 97, in init
self.driver = webdriver.Chrome(service=self.service, options=self.options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.12/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
super().init(
File "/root/miniconda3/lib/python3.12/site-packages/selenium/webdriver/chromium/webdriver.py", line 66, in init
super().init(command_executor=executor, options=options)
File "/root/miniconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 212, in init
self.start_session(capabilities)
File "/root/miniconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 299, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 354, in execute
self.error_handler.check_response(response)
File "/root/miniconda3/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary
Stacktrace:
#0 0x5585ff0c24e3
#1 0x5585fedf1c76
#2 0x5585fee18757
#3 0x5585fee17029
#4 0x5585fee55ccc
#5 0x5585fee5547f
#6 0x5585fee4cde3
#7 0x5585fee222dd
#8 0x5585fee2334e
#9 0x5585ff0823e4
#10 0x5585ff0863d7
#11 0x5585ff090b20
#12 0x5585ff087023
#13 0x5585ff0551aa
#14 0x5585ff0ab6b8
#15 0x5585ff0ab847
#16 0x5585ff0bb243
#17 0x7fcb35ad1ac3

@yuhp-zts
Copy link

Did you manage to solve this problem?

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