Skip to content

Instantly share code, notes, and snippets.

@Tob-iee
Created September 13, 2023 14:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Tob-iee/8c5fe643d5b2d8bce8cfb8802e559acc to your computer and use it in GitHub Desktop.
Load the image processor (encoder) and object detector (decoder).
image_processor = AutoImageProcessor.from_pretrained(finetuned_output_dir)
model = AutoModelForObjectDetection.from_pretrained(finetuned_output_dir)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment