mengcius / surface-defect-detection Goto Github PK
View Code? Open in Web Editor NEWSegmentation-Based Deep-Learning Approach for Surface-Defect Detection
Segmentation-Based Deep-Learning Approach for Surface-Defect Detection
Surface-Defect-Detection/train_segment.py
Line 48 in 1f42670
Surface-Defect-Detection/models.py
Line 74 in 1f42670
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.
segment_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
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
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.