Rui Wan commited on
Commit
38a1679
·
1 Parent(s): 487ee3e

Remove unused model

Browse files
.~lock.DataForThermoforming.xlsx# DELETED
@@ -1 +0,0 @@
1
- ,wan6,precision,21.01.2026 10:05,file:///home/wan6/snap/libreoffice/365/.config/libreoffice/4;
 
 
.~lock.DataForThermoforming_Modified_Pritom.xlsx# DELETED
@@ -1 +0,0 @@
1
- ,wan6,precision,12.01.2026 14:02,file:///home/wan6/snap/libreoffice/365/.config/libreoffice/4;
 
 
.~lock.Hat_Section_AM.pptx# DELETED
@@ -1 +0,0 @@
1
- ,wan6,precision,12.01.2026 16:00,/home/wan6/snap/onlyoffice-desktopeditors/890/.local/share/onlyoffice;
 
 
__pycache__/model.cpython-312.pyc ADDED
Binary file (2.97 kB). View file
 
__pycache__/model_inverse.cpython-312.pyc CHANGED
Binary files a/__pycache__/model_inverse.cpython-312.pyc and b/__pycache__/model_inverse.cpython-312.pyc differ
 
data_augment.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import torch
3
+ from Dataset import Dataset
4
+ from model import NeuralNetwork
5
+ from model_inverse import DEVICE
6
+
7
+ def load_model(model_path):
8
+ checkpoint = torch.load(model_path, map_location=DEVICE)
9
+ model_config = checkpoint['model_config']
10
+ model = NeuralNetwork(model_config['layer_sizes'], dropout_rate=model_config['dropout_rate'])
11
+ model.load_state_dict(checkpoint['model_state_dict'])
12
+ print(f"Model loaded from {model_path}")
13
+
14
+ model.to(DEVICE)
15
+ model.eval()
16
+ return model
17
+
18
+ def augment_data():
19
+ data = Dataset()
20
+ model = load_model('./model_ckpt.pth')
21
+ ply_number_bounds = [2., 8.]
22
+ initial_temp_bounds = [350., 450.]
23
+ punch_velocity_bounds = [100., 500.]
24
+ cooling_time_bounds = [450., 550.]
25
+ bounds = torch.tensor([ply_number_bounds, initial_temp_bounds, punch_velocity_bounds, cooling_time_bounds], dtype=torch.float32)
26
+
27
+
model_inverse_ckpt.pth DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:627d783e02e0538dbcb75eef4a8a19ac27b3eed2f791b38eadb5c5cd31de98e5
3
- size 39591
 
 
 
 
springback_angle_prediction.png ADDED
stress_max_prediction.png ADDED