Git Product home page Git Product logo

surface-defect-detection's People

Contributors

mengcius avatar

Stargazers

 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

surface-defect-detection's Issues

criterion_segment = torch.nn.BCEWithLogitsLoss() # non convergence?I know the answer!

# criterion_segment = torch.nn.BCEWithLogitsLoss() # non convergence

nn.ReLU(inplace=True)

where you use the layer activate function is relu,but becwithlogitsloss has the sigmoid, that's error, it will train hardly, that's why non convergence.

as usual, the last layer of segment model is just a conv and no act.

in the paper, he conclused ce loss is better than mse.

A question about the model

An error occurred when I was running python models.py

python models.py
Traceback (most recent call last):
File "models.py", line 163, in
ret = snet(img)
File "/home/A305/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "models.py", line 87, in forward
w = F.avg_pool2d(x3, x3.size(2))
RuntimeError: Given input size: (64x88x32). Calculated output size: (64x1x0). Output size is too small

Is there any way to fix it?

Ubuntu version: 20.04
Pytorch version: 1.7
CUDA version: 11.0

why not use decision_net.eval()?

segment_net.eval()

decision_net.eval()

hi:
tks for you job, I have a question
I opened the comment and it didn't work very well in test.py, but I didn't understand why.Please give advice or comments

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.