aspnet commited on
Commit
4b30ddd
1 Parent(s): 0b4a72d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -315,7 +315,7 @@ print(dataset['test'])
315
  print(dataset['validation'])
316
  '''
317
  #########################
318
-
319
  from ultralytics import YOLO
320
 
321
  # Load a model
@@ -325,3 +325,15 @@ model = YOLO("yolov8n.yaml").load("yolov8n.pt") # build from YAML and transfer
325
 
326
  # Train the model
327
  results = model.train(data="coco8.yaml", epochs=100, imgsz=640)
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  print(dataset['validation'])
316
  '''
317
  #########################
318
+ '''
319
  from ultralytics import YOLO
320
 
321
  # Load a model
 
325
 
326
  # Train the model
327
  results = model.train(data="coco8.yaml", epochs=100, imgsz=640)
328
+ '''
329
+ ###################################
330
+ import zipfile
331
+
332
+ def unzip_file(zip_path, extract_to):
333
+ with zipfile.ZipFile(zip_path, 'r') as zip_ref:
334
+ zip_ref.extractall(extract_to)
335
+
336
+ zip_file_path = 'Math Equation by YOLO-NAS.v2i.yolov8.zip' # 替换为你的zip文件路径
337
+ extract_to_path = 'MathEquationbyYOLO-NAS.v2i.yolov8' # 替换为你希望解压到的目录路径
338
+
339
+ unzip_file(zip_file_path, extract_to_path)