|
|
@@ -1,7 +1,8 @@
|
|
|
import torch
|
|
|
|
|
|
from models.line_detect.line_detect import linedetect_newresnet18fpn, linedetect_resnet50_fpn, linedetect_resnet18_fpn, \
|
|
|
- linedetect_newresnet50fpn, linedetect_maxvitfpn, linedetect_high_maxvitfpn, linedetect_swin_transformer_fpn
|
|
|
+ linedetect_newresnet50fpn, linedetect_maxvitfpn, linedetect_high_maxvitfpn, linedetect_swin_transformer_fpn, \
|
|
|
+ linedetect_newresnet101fpn
|
|
|
|
|
|
from models.line_net.trainer import Trainer
|
|
|
|
|
|
@@ -16,10 +17,11 @@ if __name__ == '__main__':
|
|
|
# model = lineDetect_resnet18_fpn()
|
|
|
|
|
|
# model=linedetect_resnet18_fpn()
|
|
|
- # model=linedetect_newresnet50fpn(num_points=3)
|
|
|
- # model = linedetect_newresnet50fpn(num_points=3)
|
|
|
+ # model=linedetect_newresnet18fpn(num_points=3)
|
|
|
+ # model = linedetect_newresnet101fpn(num_points=3)
|
|
|
# model.load_weights(save_path=r'/home/admin/projects/MultiVisionModels/models/line_detect/train_results/20250711_114046/weights/best_val.pth')
|
|
|
# model=linedetect_maxvitfpn()
|
|
|
- # model=linedetect_high_maxvitfpn()
|
|
|
- model=linedetect_swin_transformer_fpn(type='t')
|
|
|
+ model=linedetect_high_maxvitfpn()
|
|
|
+ model.load_weights(r'/data/share/rlq/weights/250718maxvit_best_val.pth')
|
|
|
+ # model=linedetect_swin_transformer_fpn(type='t')
|
|
|
model.start_train(cfg='train.yaml')
|