GithubHelp home page GithubHelp logo

luyaoochen / uninformed-students-pytorch Goto Github PK

View Code? Open in Web Editor NEW
36.0 36.0 14.0 1.02 MB

A simple implementation of paper: Uninformed Students: Student–Teacher Anomaly Detection with Discriminative Latent Embeddings.

License: MIT License

Python 100.00%

uninformed-students-pytorch's People

Contributors

loyochen avatar luyaoochen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

uninformed-students-pytorch's Issues

RuntimeError: CUDA error: invalid device ordinal ?

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),大家一起讨论,嘻嘻~

493972921

feature map extracted from student and teacher

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.

pretrained model feature

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.