luyaoochen / uninformed-students-pytorch Goto Github PK
View Code? Open in Web Editor NEWA simple implementation of paper: Uninformed Students: Student–Teacher Anomaly Detection with Discriminative Latent Embeddings.
License: MIT License
A simple implementation of paper: Uninformed Students: Student–Teacher Anomaly Detection with Discriminative Latent Embeddings.
License: MIT License
python teacher_train.py
...
Traceback (most recent call last):
File "teacher_train.py", line 61, in
model = _Teacher(patch_size).to(device)
File "/home/dit-train-3/anaconda3/envs/pytorch_test/lib/python3.8/site-packages/torch/nn/modules/module.py", line 612, in to
return self._apply(convert)
File "/home/dit-train-3/anaconda3/envs/pytorch_test/lib/python3.8/site-packages/torch/nn/modules/module.py", line 359, in _apply
module._apply(fn)
File "/home/dit-train-3/anaconda3/envs/pytorch_test/lib/python3.8/site-packages/torch/nn/modules/module.py", line 359, in _apply
module._apply(fn)
File "/home/dit-train-3/anaconda3/envs/pytorch_test/lib/python3.8/site-packages/torch/nn/modules/module.py", line 381, in _apply
param_applied = fn(param)
File "/home/dit-train-3/anaconda3/envs/pytorch_test/lib/python3.8/site-packages/torch/nn/modules/module.py", line 610, in convert
return t.to(device, dtype if t.is_floating_point() else None, non_blocking)
RuntimeError: CUDA error: invalid device ordinal
What's happened?
你好,感谢你的复现!
我在跑evaluate.py的时候:
plt.imshow(plt_img, cmap='jet') # 这里报错: TypeError: Invalid dimensions for image data,上一步plt_img的shape为[256, 256, 1],改为[256, 256]后,还是报这个错。
后来我把plt这部分注释掉了,跑后面的程序,然后发现结果图 res.jpg 效果不是特别理想,有些确实很不错(我跑的carpet数据,patch_size[17, 33, 65], 3个student)。请问有无提升的计划,我建了一个群(QQ: 689772351),大家一起讨论,嘻嘻~
Hello, thanks for your work! Can I ask if there is any difference between the feature map extracted from student and teacher? When I visualize the feature maps, they seem to be same.
Hello, thanks for your codes! Can I ask why you fetch the first 512-d vector from the fc's output? I guess we should extract from the fc's input, that is, a 512-d feature.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.