Coder Social home page Coder Social logo

csd's People

Contributors

booooooooooo 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  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

csd's Issues

About EDSR+ teacher performance

In EDSR paper, the EDSR model (32 layer, 256 channel) is about 32.46. But in your paper, the performance is 32.60. I wonder the training setting about your teacher.

baseline比较并不公平 如何验证蒸馏方法的有效性

baseline student是从头开始训练的(scratch),而csd student用了教师部分channel的预训练权重+CSD,个人觉得这两者比较并不公平。

所以我们复现了student同样载入教师部分权重后与hr 直接进行l1作为baseline,没有用任何蒸馏。初步训练结果如下:

0.25 Set5 32.34541767076197 39.64636575838763 0.8969442045190894
0.25 Set14 28.727600156122755 23.11639569902273 0.7848623259477279
0.25 B100 27.661651828426916 19.849210476012832 0.738650274225103
0.25 Urban100 26.30338385572442 12.644811790998192 0.792405167459895

论文中CSDx4 student指标为:

Set5 32.34 0.8974 
Set14 28.72 0.7856 
B100 27.68 0.7396 
Urban100 26.34 0.7948

从指标看,用不用蒸馏的结果相差并不大。个人觉得很难有说服力吧。

code

We do not find 'trainer' in code, could you share a complete code ?

你好

我复习代码 在bic_sample = lr[torch.randperm(self.neg_num), :, :, :] 为什么会出现类似tensor溢出的问题

关于动态分配两种支路的问题

您好,首先非常感谢您的论文以及开源代码,给我的学习带来了很大帮助。
在反复研读了您的论文之后,如果我没理解错的话这个模型的目的是想创建两条支路,一条teacher,一条student。在测试时只加载一个pretrained model,比如edsr_x4_0.25student.pth。然后模型根据资源动态分配,决定使用teacher还是student。我有点不理解这个动态分配是如何实现的,因为我看了代码,test时给了--stu_width_mult 0.25 参数,那就是相当于只加载了student那条支路啊?

关于baseline 0.25x

您好,我们在一些工程上验证了该论文的方法,发现效果不错,且验证了CSD方法 x4(T&S),与论文一致,感谢您的开源。
但是baseline验证的时候有一些问题:下载的edsr_x4_baseline.pth 在--stu_width_mult 1 时 与论文指标是相同的,即teacher推理正确。

但是在0.25时set5的psnr 只有14,与论文32.23差距很大,该情况在其他数据集中也差的很大。
请问edsr_x4_baseline.pth支持0.25的推理吗?

Some question about speed up

Thanks for your job. It help me a lot. I have some question about speed up to ask.

image

in rw= 0.5x. in figure (a) .Because input channel and output channel will reduce by half. So the parameters only use 1/4 is easy to understand. But in figure (b), Why the speed time only reduce by half (not 1/4)? Can you explain a little bit? :)

About Contrastive Loss

Thanks for your great works! After reading the papers and codes,I have a question about Contrastive loss。In your codes, using the unrelated samples in a batch as negative samples. How to select negative samples really interests me. As we all know, the unrelated samples in a batch is far away from the outputs of student networks. Could using this as negative samples really be a good lower bounds? Have you ever consider using other images as negative samples? eg. upsample(self.lq) or gaussianBlur(upsample(self.lq))...
Hope for your reply, sincerely!

CL negtive sample question

Thanks for sharing your code online! I have some question about construting negtive sample. In [CSD/PyTorch version/trainer/slim_contrast_trainer.py#L100]

bic_sample = lr[torch.randperm(self.neg_num), :, :, :]

(https://github.com/Booooooooooo/CSD/blob/main/PyTorch%20version/trainer/slim_contrast_trainer.py#L100). I think some negtive sample actually is a positive sample. For example, Why not set batchsize = old_batch_size+neg_num. In each iterate, use old_batch_size sample constructing sample+postive samples, and use the remaining neg_num samples as the negative samples

为什么不直接采用hr作为负样本?

您好!看了您的论文以及代码实现,我有一个疑问,为什么不直接采用hr作为负样本,而是要对lr进行双线性插值上采样后作为负样本?这样做有什么好处么?

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.