Comments (4)
你解决了吗?我也遇到了这个问题
from vand-april-gan.
Can you provide more detailed error information, please? I need to pinpoint the location of the error.
from vand-april-gan.
Can you provide more detailed error information, please? I need to pinpoint the location of the error.
Traceback (most recent call last):
File "train.py", line 177, in
train(args)
File "train.py", line 140, in train
loss.backward()
File "C:\Users\yzc.conda\envs\APRIL_GAN\lib\site-packages\torch_tensor.py", line 522, in backward
torch.autograd.backward(
File "C:\Users\yzc.conda\envs\APRIL_GAN\lib\site-packages\torch\autograd_init_.py", line 266, in backward
Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.HalfTensor [8, 1369, 768]], which is output 0 of DivBackward0, is at version 2; expected version 1 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).
my env: windows11, torch 2.2.2+cu121
In my env, I modified line 122 in train.py to the following and then the error disappeared
patch_tokens[layer] = patch_tokens[layer] / patch_tokens[layer].norm(dim=-1, keepdim=True)
from vand-april-gan.
from vand-april-gan.
Related Issues (20)
- Can it work without the mask images? HOT 7
- why the AUPRO lower than the WinCLIP? HOT 1
- Few Shot is just One Shot here? HOT 2
- Issues Recreating Model HOT 2
- -
- Calculation False Positive Rate
- Guidance on Threshold Setting for Accurate Defect Detection in Heatmap Visualizations (red mark) HOT 1
- Can we test without loading pre-trained weights? HOT 4
- Is there a way to get the score of how anomalous an image is? HOT 2
- is that possible to convert and using onnx file? HOT 1
- mvtec epoch HOT 1
- What type of GPU are you using and how long does it take HOT 2
- About text_probs. HOT 1
- initialized by other weight HOT 2
- 除了添加的线性层 clip其它部分的权重有被微调吗 HOT 2
- 关于train.py中的的Dataset问题 HOT 1
- global image representations HOT 4
- 检测结果 HOT 1
- few-shot的异常分类分数
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vand-april-gan.