realIADD3复现笔记

文章目录

如何查找每个下一级子目录下所有png个数

find /home/c1/zgp/real_IADD3 -maxdepth 1 -type d ! -path "/home/c1/zgp/real_IADD3" | while read subdir; do

count= ( f i n d " (find " (find"subdir" -type f -name "*.png" | wc -l)

echo "subdir : count PNG files"

done

/home/c1/zgp/real_IADD3/audio_jack_socket : 225 PNG files

/home/c1/zgp/real_IADD3/common_mode_filter : 200 PNG files

/home/c1/zgp/real_IADD3/connector_housing_female : 200 PNG files

/home/c1/zgp/real_IADD3/crimp_st_cable_mount_box : 175 PNG files

/home/c1/zgp/real_IADD3/dc_power_connector : 200 PNG files

/home/c1/zgp/real_IADD3/ethernet_connector : 150 PNG files

/home/c1/zgp/real_IADD3/ferrite_bead : 125 PNG files

/home/c1/zgp/real_IADD3/fork_crimp_terminal : 175 PNG files

/home/c1/zgp/real_IADD3/fuse_holder : 150 PNG files

/home/c1/zgp/real_IADD3/headphone_jack_socket : 250 PNG files

/home/c1/zgp/real_IADD3/knob_cap : 150 PNG files

/home/c1/zgp/real_IADD3/lattice_block_plug : 200 PNG files

/home/c1/zgp/real_IADD3/lego_pin_connector_plate : 200 PNG files

/home/c1/zgp/real_IADD3/lego_propeller : 150 PNG files

/home/c1/zgp/real_IADD3/miniature_lifting_motor : 100 PNG files

/home/c1/zgp/real_IADD3/humidity_sensor : 200 PNG files

/home/c1/zgp/real_IADD3/limit_switch : 200 PNG files

/home/c1/zgp/real_IADD3/power_jack : 150 PNG files

/home/c1/zgp/real_IADD3/purple_clay_pot : 200 PNG files

/home/c1/zgp/real_IADD3/telephone_spring_switch : 250 PNG files

s_map.shape torch.Size([50176, 3])

Extracting test features for class bagel: 0%| | 0/110 [00:09<?, ?it/s]

Traceback (most recent call last):

File "main.py", line 156, in

run_3d_ads(args)

File "main.py", line 34, in run_3d_ads

image_rocaucs, pixel_rocaucs, au_pros = model.evaluate(cls)

File "/home/c1/zgp/realIAD_main/main-main/m3dm_runner.py", line 118, in evaluate

method.predict(sample, mask, label)

File "/home/c1/zgp/realIAD_main/main-main/feature_extractors/multiple_features.py", line 772, in predict

self.compute_s_s_map(xyz_patch, rgb_patch, fusion_patch, xyz_patch_full_resized[0].shape[-2:], mask, label, center, neighbor_idx, nonzero_indices, unorganized_pc_no_zeros.contiguous(), center_idx)

File "/home/c1/zgp/realIAD_main/main-main/feature_extractors/multiple_features.py", line 975, in compute_s_s_map

s = torch.tensor(self.detect_fuser.score_samples(s))

File "/home/hanmh/anaconda3/envs/zgp_m3dm/lib/python3.8/site-packages/sklearn/linear_model/stochastic_gradient.py", line 2546, in score_samples
score_samples = self.decision_function(X) + self.offset

File "/home/hanmh/anaconda3/envs/zgp_m3dm/lib/python3.8/site-packages/sklearn/linear_model/stochastic_gradient.py", line 2526, in decision_function
check_is_fitted(self, "coef
")

File "/home/hanmh/anaconda3/envs/zgp_m3dm/lib/python3.8/site-packages/sklearn/utils/validation.py", line 1461, in check_is_fitted

raise NotFittedError(msg % {"name": type(estimator).name })

sklearn.exceptions.NotFittedError: This SGDOneClassSVM instance is not fitted yet. Call 'fit' with appropriate arguments before using this estimator.

python3.8 main.py --dataset_type mvtec3d --dataset_path /home/zgp/Documents/m3dmpre/datasets/mvtec3d --method_name DINO+Point_MAE+Fusion --rgb_backbone_name vit_base_patch8_224_dino --xyz_backbone_name Point_MAE --fusion_module_path /home/zgp/Documents/M3DM_5_3080/EyecheckpointsFPFHDINOm3dm/checkpoint-2.pth --img_size 224 --max_sample 400 --coreset_eps 0.9 --save_preds

find /home/zgp/Documents/m3dmpre/datasets/mvtec3d -maxdepth 1 -type d ! -path "/home/zgp/Documents/m3dmpre/datasets/mvtec3d" | while read subdir; do count= ( f i n d " (find " (find"subdir" -type f -name "*.png" | wc -l); echo "subdir : count PNG files"; done

/home/zgp/Documents/m3dmpre/datasets/mvtec3d/cable_gland : 462 PNG files

/home/zgp/Documents/m3dmpre/datasets/mvtec3d/dowel : 582 PNG files

/home/zgp/Documents/m3dmpre/datasets/mvtec3d/carrot : 633 PNG files

/home/zgp/Documents/m3dmpre/datasets/mvtec3d/peach : 667 PNG files

/home/zgp/Documents/m3dmpre/datasets/mvtec3d/tire : 463 PNG files

/home/zgp/Documents/m3dmpre/datasets/mvtec3d/bagel : 486 PNG files

/home/zgp/Documents/m3dmpre/datasets/mvtec3d/cookie : 494 PNG files

/home/zgp/Documents/m3dmpre/datasets/mvtec3d/potato : 561 PNG files

/home/zgp/Documents/m3dmpre/datasets/mvtec3d/foam : 463 PNG files

/home/zgp/Documents/m3dmpre/datasets/mvtec3d/rope : 533 PNG files

相关推荐
许长安34 分钟前
C++中指针和引用的区别
c++·经验分享·笔记
摇滚侠1 小时前
Spring Boot3零基础教程,StreamAPI 介绍,笔记98
java·spring boot·笔记
摇滚侠1 小时前
Spring Boot3零基础教程,StreamAPI 的基本用法,笔记99
java·spring boot·笔记
岑梓铭2 小时前
《考研408数据结构》第六章(5.5树的应用)复习笔记
数据结构·笔记·考研·408·ds
前路不黑暗@3 小时前
Java:继承与多态
java·开发语言·windows·经验分享·笔记·学习·学习方法
moringlightyn4 小时前
基础开发工具--编译器g++/gcc 自动化构建make/Makefile
linux·运维·笔记·自动化·c·编译器·make/makefile
_dindong5 小时前
牛客101:递归/回溯
数据结构·c++·笔记·学习·算法·leetcode·深度优先
**蓝桉**5 小时前
服务器管理
linux·笔记
lingggggaaaa5 小时前
小迪安全v2023学习笔记(一百四十三讲)—— Win系统权限提升篇&AD内网域控&NetLogon&ADCS&PAC&KDC&CVE漏洞
windows·笔记·学习·安全·内网安全·权限提升
71-36 小时前
牛客上的练习题——打印X形图案(有说明scanf返回值)
c语言·笔记·学习