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

Trained model Preview Error : An error has occurred, pls try again later #609

Closed
1 task done
chunyu-visiiontif opened this issue Mar 11, 2024 · 4 comments
Closed
1 task done
Assignees
Labels
bug Something isn't working fixed Bug is resolved

Comments

@chunyu-visiiontif
Copy link

Search before asking

  • I have searched the HUB issues and found no similar bug report.

HUB Component

Models

Bug

When I tried to preview the trained model and uploaded the image. I got An error has occurred, pls try again later.
For the inspect -> Console I got

Access to XMLHttpRequest at 'https://api.ultralytics.com/v1/predict/MYQpsaF9kjOSevprJRt9' from origin 'https://hub.ultralytics.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
api.ultralytics.com/v1/predict/MYQpsaF9kjOSevprJRt9:1

ultralytics-Preview_Error
Failed to load resource: net::ERR_FAILED

Environment

Windows 10
Chrome is up to date
Version 122.0.6261.112 (Official Build) (64-bit)

Minimal Reproducible Example

logon to the hub.
select a model
click preview
upload an image
https://hub.ultralytics.com/models/MYQpsaF9kjOSevprJRt9?tab=preview

Additional

No response

@chunyu-visiiontif chunyu-visiiontif added the bug Something isn't working label Mar 11, 2024
Copy link

👋 Hello @chunyu-visiiontif, thank you for raising an issue about Ultralytics HUB 🚀! Please visit our HUB Docs to learn more:

  • Quickstart. Start training and deploying YOLO models with HUB in seconds.
  • Datasets: Preparing and Uploading. Learn how to prepare and upload your datasets to HUB in YOLO format.
  • Projects: Creating and Managing. Group your models into projects for improved organization.
  • Models: Training and Exporting. Train YOLOv5 and YOLOv8 models on your custom datasets and export them to various formats for deployment.
  • Integrations. Explore different integration options for your trained models, such as TensorFlow, ONNX, OpenVINO, CoreML, and PaddlePaddle.
  • Ultralytics HUB App. Learn about the Ultralytics App for iOS and Android, which allows you to run models directly on your mobile device.
    • iOS. Learn about YOLO CoreML models accelerated on Apple's Neural Engine on iPhones and iPads.
    • Android. Explore TFLite acceleration on mobile devices.
  • Inference API. Understand how to use the Inference API for running your trained models in the cloud to generate predictions.

If this is a 🐛 Bug Report, please provide screenshots and steps to reproduce your problem to help us get started working on a fix.

If this is a ❓ Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response.

We try to respond to all issues as promptly as possible. Thank you for your patience!

@UltralyticsAssistant
Copy link
Member

@chunyu-visiiontif hello! Thank you for bringing this issue to our attention. It seems like you're encountering a CORS (Cross-Origin Resource Sharing) policy error when trying to preview your trained model on the Ultralytics HUB. This is typically related to how web browsers enforce security measures to prevent potentially malicious websites from accessing resources and data from another domain without permission.

Here are a few steps you can take to troubleshoot and potentially resolve this issue:

  1. Clear Browser Cache and Cookies: Sometimes, outdated cache or cookies can cause unexpected behavior. Try clearing your browser's cache and cookies and then attempt to preview the model again.

  2. Try a Different Browser: To rule out browser-specific issues, try accessing the HUB using a different web browser.

  3. Check Network Configuration: If you're on a corporate or school network, there might be network-level security policies in place that could block certain requests. If possible, try accessing the HUB from a different network environment.

  4. Disable Browser Extensions: Sometimes, browser extensions can interfere with web requests. Try disabling any extensions, especially those related to security or ad-blocking, and see if that resolves the issue.

If after trying these steps you're still facing the problem, please provide us with any additional details or changes in the error message. This will help us further diagnose and address the issue more effectively.

For more detailed guidance on using the Ultralytics HUB, you can refer to our documentation at https://docs.ultralytics.com/hub.

We appreciate your patience and are here to help you get back to your work as smoothly as possible! 😊

@sergiuwaxmann sergiuwaxmann self-assigned this Mar 12, 2024
@sergiuwaxmann
Copy link
Member

Hi @chunyu-visiiontif!
Thank you for bringing this issue to our attention.
We were able to replicate this issue and are working on a fix now.

@sergiuwaxmann sergiuwaxmann mentioned this issue Mar 12, 2024
1 task
@sergiuwaxmann
Copy link
Member

@chunyu-visiiontif @dougkote
A fix has been deployed. Apologies for any inconvenience caused.

@sergiuwaxmann sergiuwaxmann added the fixed Bug is resolved label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed Bug is resolved
Projects
None yet
Development

No branches or pull requests

3 participants