progress
This commit is contained in:
parent
e005a42254
commit
e155b4a2a1
26 changed files with 468 additions and 36 deletions
28
web_p/education.py
Normal file
28
web_p/education.py
Normal file
|
@ -0,0 +1,28 @@
|
|||
import shutil
|
||||
import argparse
|
||||
import os.path
|
||||
from pathlib import Path
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--path")
|
||||
parser.add_argument("--name")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
def copy_and_move_folder(src, dst, folder):
|
||||
try:
|
||||
if os.path.exists(dst + "/education/") is False:
|
||||
Path(dst + "/education/").mkdir(parents=True, exist_ok=True)
|
||||
if os.path.exists(dst + "/education/" + folder + "/"):
|
||||
shutil.rmtree(dst + "/education/" + folder + "/")
|
||||
|
||||
shutil.copytree(src, dst + "/education/" + folder + "/")
|
||||
|
||||
except shutil.Error as e:
|
||||
print(f"Error: {e}")
|
||||
|
||||
|
||||
source_folder = os.path.dirname(os.path.abspath(__file__)) + "/education"
|
||||
|
||||
copy_and_move_folder(source_folder, args.path, args.name)
|
3
web_p/education/metadata.json
Normal file
3
web_p/education/metadata.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"numberOfEpochs": 1
|
||||
}
|
BIN
web_p/education/yolov8n.pt
Normal file
BIN
web_p/education/yolov8n.pt
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue