1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Epoch 20/20 | Batch 2705/2706 | Loss: 0.9635
Epoch 20/20 | Batch 2706/2706 | Loss: 0.0000
Epoch 20/20 完成 | Avg Loss: 0.3585
已保存檢查點 checkpoint_epoch_20.pth
訓練完成!
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina/nina/visa_task/visa_task$ cp /mnt/nfs/nina/nina/visa_task/visa_task/seg/checkpoint_epoch_20.pth /mnt/nfs/nina/checkpoint_epoch_20.pth cp /mnt/nfs/nina/nina/visa_task/visa_task/seg/checkpoint_epoch_20.pth /mnt/nfs/nina/checkpoint_epoch_20.pth
cp: cannot stat '/mnt/nfs/nina/nina/visa_task/visa_task/seg/checkpoint_epoch_20.pth': No such file or directory
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina/nina/visa_task/visa_task$ ls /mnt/nfs/nina/nina/visa_task/visa_task/seg/ ls /mnt/nfs/nina/nina/visa_task/visa_task/seg/
inference_segmentation.py run_train_segmentation.sh save_segmentation_model.py segmentation_output segmentation_results train_segmentation_fixed.py train_segmentation.py
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina/nina/visa_task/visa_task$ ls /mnt/nfs/nina/nina/visa_task/visa_task/seg/segmentation_output/ ls /mnt/nfs/nina/nina/visa_task/visa_task/seg/segmentation_output/
interrupted_segmentation_model.pth
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina/nina/visa_task/visa_task$ find /mnt/nfs -name "checkpoint_epoch_20.pth" find /mnt/nfs -name "checkpoint_epoch_20.pth"
/mnt/nfs/nina/nina/visa_task/visa_task/segmentation_output/checkpoint_epoch_20.pth

(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina/nina/visa_task/visa_task$
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina/nina/visa_task/visa_task$ cp /mnt/nfs/nina/nina/visa_task/visa_task/segmentation_output/checkpoint_epoch_20.pth /mnt/nfs/nina/ cp /mnt/nfs/nina/nina/visa_task/visa_task/segmentation_output/checkpoint_epoch_20.pth /mnt/nfs/nina/
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina/nina/visa_task/visa_task$ find /find /mnt/nfs -name "checkpoint_epoch_20.pth"
/mnt/nfs/nina/nina/visa_task/visa_task/segmentation_output/checkpoint_epoch_20.pth
/mnt/nfs/nina/checkpoint_epoch_20.pth
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina/nina/visa_task/visa_task$ chmod 644 /mnt/nfs/nina/checkpoint_epoch_20.pth chmod 644 /mnt/nfs/nina/checkpoint_epoch_20.pth
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina/nina/visa_task/visa_task$ # 再次確認檔案真的存在
ls -lh /mnt/nfs/nina/nina/visa_task/visa_task/segmentation_output/checkpoint_epoch_20.pth # 再次確認檔案真的存在
ls -lh /mnt/nfs/nina/nina/visa_task/visa_task/segmentation_output/checkpoint_epoch_20.ptht/nfs/nina/nina/visa_task/visa_task/segmentation_output/checkpoint_epoch_20.pth /mnt/nfs/nina/checkpoint_epoch_20.pth
# 然後強制重新複製(加 -v 看進度)
cp -v /mnt/nfs/nina/nina/visa_task/visa_task/segmentation_output/checkpoint_epoch_20.pth /mnt/nfs/nina/checkpoint_epoch_20.pthh

# 設定權限
chmod 644 /mnt/nfs/nina/checkpoint_epoch_20.pth
-rw-r--r-- 1 116 121 1.1G Jun 14 19:01 /mnt/nfs/nina/nina/visa_task/visa_task/segmentation_output/checkpoint_epoch_20.pth
'/mnt/nfs/nina/nina/visa_task/visa_task/segmentation_output/checkpoint_epoch_20.pth' -> '/mnt/nfs/nina/checkpoint_epoch_20.pth'
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina/nina/visa_task/visa_task$ cp -v /mnt/nfs/nina/checkpoint_epoch_20.pth /mnt/nfs/nina/model_epoch20.bin cp -v /mnt/nfs/nina/checkpoint_epoch_20.pth /mnt/nfs/nina/model_epoch20.bin
chmod 644 /mnt/nfs/nina/model_epoch20.bin
'/mnt/nfs/nina/checkpoint_epoch_20.pth' -> '/mnt/nfs/nina/model_epoch20.bin'
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina/nina/visa_task/visa_task$ cd /mnt/nfs/nina cd /mnt/nfs/ninaepoch20.zip checkpoint_epoch_20.pth
zip model_epoch20.zip checkpoint_epoch_20.pth
bash: zip: command not found
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina$ apt update
apt install zip -y
Reading package lists... Done
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina$ ls
'#' alex andy angus cd checkpoint_epoch_20.pth chris daniel hhhhhsuan j3soon lance ls model_epoch20.bin nina results set sgyson10 tjc 如果已存在就會出錯,不影響
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina$ cd /mnt/nfs/nina
tar -czvf model_epoch20.tar.gz checkpoint_epoch_20.pth
chmod 644 model_epoch20.tar.gz
checkpoint_epoch_20.pth

(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina$
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina$ ls -lh /mnt/nfs/nina/model_epoch20.* ls -lh /mnt/nfs/nina/model_epoch20.*
-rw-r--r-- 1 116 121 1.1G Jun 14 19:09 /mnt/nfs/nina/model_epoch20.bin
-rw-r--r-- 1 116 121 959M Jun 14 19:12 /mnt/nfs/nina/model_epoch20.tar.gz
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina$ mv /mnt/nfs/nina/model_epoch20.tar.gz /mnt/nfs/nina/nina/ mv /mnt/nfs/nina/model_epoch20.tar.gz /mnt/nfs/nina/nina/na/model_epoch20.tar.gz
chmod 644 /mnt/nfs/nina/nina/model_epoch20.tar.gz
(base) jovyan@unzip-workspace-0-2:/mnt/nfs/nina$