shancx 1.9.33.156__tar.gz → 1.9.33.157__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {shancx-1.9.33.156 → shancx-1.9.33.157}/PKG-INFO +1 -1
- {shancx-1.9.33.156 → shancx-1.9.33.157}/setup.py +1 -1
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/bak.py +10 -76
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx.egg-info/PKG-INFO +1 -1
- {shancx-1.9.33.156 → shancx-1.9.33.157}/README.md +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/setup.cfg +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/3D/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/Class.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/CudaPrefetcher1.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/Fake_image.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/Hsml.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/L2Loss.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/MetricTracker.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/Normalize.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/OptimizerWScheduler.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/Rmageresize.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/Savemodel.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/SmoothL1_losses.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/Tqdm.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/checknan.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/dsalgor.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/iouJU.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/mask.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/psnr.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/ssim.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/structural_similarity.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Algo/tool.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Calmetrics/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Calmetrics/calmetrics.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Calmetrics/calmetricsmatrixLib.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Calmetrics/rmseR2score.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Clip/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Command.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Df/DataFrame.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Df/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Df/tool.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Diffm/Psamples.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Diffm/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Diffm/test.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Doc/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/E/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Fillmiss/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Fillmiss/imgidwJU.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Fillmiss/imgidwLatLonJU.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Gpu/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Hug/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Inst.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Lib.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Mos/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/NN/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Path.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Plot/GlobMap.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Plot/Gray2RGB.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Plot/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Plot/border.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Plot/draw_day_CR_PNG.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Plot/exam.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Plot/radarNmc.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Plot/single_china_map.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Point.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/QC.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/RdPzl/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Read.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/SN/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Time/GetTime.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Time/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Time/timeCycle.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Time/tool.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Train/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Train/makelist.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Train/multiGpu.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Train/prepare.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/Train/renet50.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/ZR.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/args.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/cmp.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/df2database.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/getResponse.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/info.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/netdfJU.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/sendM.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/tensBoard/__init__.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/tool.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx/wait.py +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx.egg-info/SOURCES.txt +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx.egg-info/dependency_links.txt +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx.egg-info/requires.txt +0 -0
- {shancx-1.9.33.156 → shancx-1.9.33.157}/shancx.egg-info/top_level.txt +0 -0
|
@@ -674,85 +674,19 @@ class drawPng():
|
|
|
674
674
|
"""
|
|
675
675
|
"""
|
|
676
676
|
conda install conda-forge::cudatoolkit==11.8.0
|
|
677
|
+
"""
|
|
677
678
|
"""
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
sudo
|
|
681
|
-
|
|
682
|
-
sudo
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
# 重新创建用户(UID=1015,GID=1015)
|
|
686
|
-
sudo useradd -u 1015 -g scx -m -s /bin/bash scx
|
|
687
|
-
# 设置密码
|
|
688
|
-
sudo passwd scx
|
|
689
|
-
# 赋予 sudo 权限
|
|
690
|
-
sudo usermod -aG sudo scx
|
|
691
|
-
2. 如果不想删除用户,可以修改用户的主组
|
|
692
|
-
bash
|
|
693
|
-
# 查看 scx 用户当前的主组
|
|
694
|
-
id scx
|
|
695
|
-
# 修改 scx 用户的主组为其他组(如 users)
|
|
696
|
-
sudo usermod -g users scx
|
|
697
|
-
# 现在可以删除 scx 组
|
|
698
|
-
sudo groupdel scx
|
|
699
|
-
# 重新创建 scx 组(GID=1015)
|
|
679
|
+
sudo pkill -9 -u scx 2>/dev/null || true
|
|
680
|
+
sudo groupdel scx 2>/dev/null; sudo userdel -r scx 2>/dev/null; sudo groupadd -g 1015 scx && sudo useradd -m -u 1015 -g 1015 -s /bin/bash scx && echo "scx:123456" | sudo chpasswd && sudo chown -R scx:scx /home/scx && id scx
|
|
681
|
+
sudo pkill -9 -u scx 2>/dev/null || true
|
|
682
|
+
sudo ps aux | grep scx | awk '{print $2}' | xargs -r sudo kill -9 2>/dev/null || true
|
|
683
|
+
sudo userdel -rf scx 2>/dev/null || true
|
|
684
|
+
sudo groupdel -f scx 2>/dev/null || true
|
|
685
|
+
sleep 2
|
|
700
686
|
sudo groupadd -g 1015 scx
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
验证
|
|
704
|
-
bash
|
|
705
|
-
id scx
|
|
706
|
-
预期输出:
|
|
707
|
-
text
|
|
708
|
-
uid=1015(scx) gid=1015(scx) groups=1015(scx),27(sudo)
|
|
709
|
-
|
|
710
|
-
groupmod -g 1016 scx
|
|
711
|
-
sudo usermod -u 1015 scx
|
|
712
|
-
# 修改用户的主组(GID)
|
|
713
|
-
sudo usermod -g scx scx
|
|
714
|
-
# 确保家目录权限正确
|
|
715
|
-
sudo chown -R scx:scx /home/scx
|
|
716
|
-
"""
|
|
717
|
-
|
|
718
|
-
""" 重置修复
|
|
719
|
-
# 强制删除用户和组
|
|
720
|
-
userdel -r scx 2>/dev/null
|
|
721
|
-
groupdel scx 2>/dev/null
|
|
722
|
-
|
|
723
|
-
# 重新创建
|
|
724
|
-
groupadd -g 1015 scx
|
|
725
|
-
useradd -m -d /home/scx -s /bin/bash -u 1015 -g 1015 scx
|
|
726
|
-
echo "scx:123456" | chpasswd
|
|
727
|
-
usermod -aG sudo scx
|
|
728
|
-
chmod 755 /home/scx
|
|
729
|
-
echo "用户 scx 创建完成!"
|
|
687
|
+
sudo useradd -m -u 1015 -g 1015 -s /bin/bash scx
|
|
688
|
+
echo "scx:123456" | sudo chpasswd
|
|
730
689
|
id scx
|
|
731
|
-
|
|
732
|
-
# 修改用户的主组为 scx
|
|
733
|
-
usermod -g scx scx
|
|
734
|
-
# 创建家目录
|
|
735
|
-
mkdir -p /home/scx
|
|
736
|
-
# 复制默认配置文件
|
|
737
|
-
cp -r /etc/skel/. /home/scx/
|
|
738
|
-
# 设置正确的所有权和权限
|
|
739
|
-
chown -R scx:scx /home/scx
|
|
740
|
-
chmod 755 /home/scx
|
|
741
|
-
|
|
742
|
-
# 验证修复结果
|
|
743
|
-
id scx
|
|
744
|
-
ls -la /home/scx
|
|
745
|
-
|
|
746
|
-
usermod -u 1015 scx
|
|
747
|
-
groupmod -g 1015 scx
|
|
748
|
-
usermod -aG sudo scx
|
|
749
|
-
chown -R scx:scx /home/scx
|
|
750
|
-
echo "scx:123456" | chpasswd
|
|
751
|
-
id scx
|
|
752
|
-
"""
|
|
753
|
-
"""
|
|
754
|
-
sudo pkill -9 -u scx 2>/dev/null || truesudo pkill -9 -u scx 2>/dev/null || true
|
|
755
|
-
sudo groupdel scx 2>/dev/null; sudo userdel -r scx 2>/dev/null; sudo groupadd -g 1015 scx && sudo useradd -m -u 1015 -g 1015 -s /bin/bash scx && echo "scx:123456" | sudo chpasswd && sudo chown -R scx:scx /home/scx && id scx
|
|
756
690
|
"""
|
|
757
691
|
|
|
758
692
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|