Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

ExportDFM.py 525 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  1. import os
  2. import sys
  3. import traceback
  4. import queue
  5. import threading
  6. import time
  7. import numpy as np
  8. import itertools
  9. from pathlib import Path
  10. from core import pathex
  11. from core import imagelib
  12. import cv2
  13. import models
  14. from core.interact import interact as io
  15. def main(model_class_name, saved_models_path):
  16. model = models.import_model(model_class_name)(
  17. is_exporting=True,
  18. saved_models_path=saved_models_path,
  19. cpu_only=True)
  20. model.export_dfm ()
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...