gene-chou / efpn-detectron2 Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hello! First of all, I think your idea is very good. I read your blog, and I want to Recurrence results myself, but I didn't find the pretraining model. Can you provide the pre training model on Baidu cloud.
Which loss function should I use?
Can I use Ce loss?
def cross_entropy(input, target, *, reduction="mean", **kwargs):
"""
Same as torch.nn.functional.cross_entropy, but returns 0 (instead of nan)
for empty inputs.
"""
if target.numel() == 0 and reduction == "mean":
return input.sum() * 0.0 # connect the gradient
return F.cross_entropy(input, target, **kwargs)
Which loss function should I use?
Can I use Ce loss?
def cross_entropy(input, target, *, reduction="mean", **kwargs):
"""
Same as torch.nn.functional.cross_entropy
, but returns 0 (instead of nan)
for empty inputs.
"""
if target.numel() == 0 and reduction == "mean":
return input.sum() * 0.0 # connect the gradient
return F.cross_entropy(input, target, **kwargs)
Nice work.
I am attracted by your work, and I am trying to replace my model's original FPN by EFPN, which is developed with MMdetection.
Is it able to realize it by mmdetection?THis module will be integrated into mmdetection?
Thanks.
Is this code applicable for running on custom datasets? Will there be any problem caused by the loss function?
Thanks for the repo,but i have a problem about training。
When I training with the faster_rcnn_X_101_32x8d_FPN_3x,it always out of the memory(TITAN X which i used only has 12G memory)
so i want to change it with faster_rcnn_R_101_FPN_3x
That‘s what i set
cfg.merge_from_file(model_zoo.get_config_file("COCO-Detection/faster_rcnn_R_101_FPN_3x.yaml"))
cfg.MODEL.WEIGHTS = ""
cfg.MODEL.RESNETS.NUM_GROUPS = 1 # 1 ==> ResNet; > 1 ==> ResNeXt
cfg.MODEL.RESNETS.WIDTH_PER_GROUP = 8
But it has the error of wrong input size:
RuntimeError: Given groups=1, weight of size [32, 512, 1, 1], expected input[2, 16, 208, 208] to have 512 channels, but got 16 channels instead
Am i setting wrong?
What should i modifiy
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.