GithubHelp home page GithubHelp logo

cydiachen / fsrnet_pytorch Goto Github PK

View Code? Open in Web Editor NEW
71.0 3.0 13.0 48.14 MB

Dear Friend, Having tried several ways, I tried to reproduce the performance of FSRNet by using Pytorch. I am Now transferring to another new project FSRNet, You can download the code and run at your own machine. Feel free to contact me.

Python 100.00%

fsrnet_pytorch's Introduction

FSRNet Pytorch

Dear friends, Thank you for keep tracking in this implementation of FSRNet (CVPR 2018 Oral Paper)

I have been spent the whole summer as an intern in Iluvatar.ai. I have been back to school, so I have time to complete the Project.

I rewrite the Train.py and other model code completely. Now I am uploading pretrained Weights on BaiduNetDisk together with Training Set.

Based on WaveletSRNet, I altered the code by adopting FSRNet network structure.

Prerequisites

  • Python 3.6
  • Pytorch 1.0 or newer (Pytorch > 0.4 should be ok)
  • matplotlib
  • skimage

Train

Change the option in Train.py to set the dataset's directory. I am using CelebAHQ-MASK as the training set. The GroundTruth is generated by zllrunning/face-parsing.PyTorch(https://github.com/zllrunning/face-parsing.PyTorch) with pretrained model.

Dataset Link: https://pan.baidu.com/s/1HEECUyKI5GOSrd7NPlm-ow 密码:z2ud

Test

ON GOING :| PYTHON AND NOTEBOOK WILL BE PROVIDED. Pretrained Weights:链接:https://pan.baidu.com/s/1ZkgABGefsMjO6XhhvlBzRA 密码:libl

Result

Citation

If you find FSRNet useful in your research, please consider citing (* indicates equal contributions):

@inproceedings{CT-FSRNet-2018,
  title={FSRNet: End-to-End Learning Face Super-Resolution with Facial Priors},
  author={Chen, Yu* and Tai, Ying* and Liu, Xiaoming and Shen, Chunhua and Yang, Jian },
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
  year={2018}
}

fsrnet_pytorch's People

Contributors

cydiachen 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

Watchers

 avatar  avatar  avatar

fsrnet_pytorch's Issues

models

缺少文件models.py,运行train.py时显示缺少models,我使用之前版本的models.py时显示缺少losses

关于 CelebAHQ-MASK大小的问题

请问在训练之前需要将图片尺寸剪裁至128x128大小吗 文件夹data\CelebA-HQ-img里的Parsing_Maps也需要同样的处理吗 谢谢

关于复现结果上不来,我观察到一点问题

网络模型用于训练的图像是经过切分对齐后的,但是heatmaps标签是未经过对齐和切分的,不准确的heatmaps会扰乱fineSR的训练过程。作者再复现时用的什么样的heatmaps标签,大家一起讨论一下,看是不是我搞错了?
输入HR图像(128 * 128):
100040721_1
heatmaps标签中的第一张(64 * 64):
map
我认为这个heatmaps需要对齐和切分处理

Questions about training details

Thank you for your work very much.I have some questions about training,can you please tell me?
1.Will the parameters in PriorEstimationNetwork change or not?
2.Have the images of training prior network and training fsrnet normalized?
Thank you for your help.

Is this the full implementation?

I was confused by reading the description of this repo and the introduction in README file. Is this now the full implementation of FSRNet? Does this reproduce the results in the original paper?

关于代码的问题

你好,我最近在做人脸超分的任务,以fsrnet为基础,我进行了一些网络结构的改进,所得的结果也比fsrnet要好一些,但是都达不到论文里的结果。请问可以对我做出一些指导或者建议吗 ?万分感谢!

Steps to follow to run this projects ?

Can someone explain to me what are the steps to follow for executing this projects : first file to execute, second one ...?
I want to execute it under Google Colab.
Thanks.

Unable to download pretrained model

Hello would it be possible to provide an alternative download link to the pretrained model.
I am unable to register a baidu account Because I do not live in China.

Machine translation / 机器翻译 :

您好,有可能提供预训练模型的替代下载链接。
我无法注册百度帐户,因为我不居住在**。

你好 !有一些关于parsing map 的问题想请教一下。

首先感谢您的代码!
但是这个关键部分的maps产生作者论文当中好像只说了作用,没说具体如何生成parsing map的 我看了你的工程 好像是靠加载npy文件来做的,能具体说下这个parsing map 生成原理吗?有办法只靠坐标来生成parsing map 而不靠hourglass网络来做。作者在提出loss中有用到预测的parsing map 和 真实的parsing map的差作为loss的一部分,但是groundtrue的parsing map是怎么产生的 您知道吗?

预训练模型前向传播报错

手动加载了weights.pkl后发现模型参数共有718个,但是define_G()新建的模型有716个参数,最后print两个模型对比得出,预训练的模型在prior_Estimation_Network的最后加了一层1x1的卷积层,models的代码里未作出改动。
而且预训练模型前向传播报错Upsample object has no attribute name,但是直接用define_G生成的模型前向传播不会报错,这个问题有点费解呀。

Pretrained file

Thank you for your sharing.Can you provide the pretrained file kindly?sr_1_4_0model_epoch_160_iter_0.pth,thank you again.

您好,加载提供的weight.pkl报错?

你好,我想用您提供的weights.pkl文件进行测试,但是 torch.load()时总是报错.
如图:
2019-11-30 21-01-57屏幕截图

我已经试过torch.load()的map_location等设置,但还是加载不成功,报错仍然一样.
请问这个问题是怎么回事?

FSRNet implement

I'm now reading FSRNet paper, and hope to reconstruct this net. Could you please send me the full implement of the FSRNet? Thank you!

traning time

How long did the training network take? On the 2080Ti, It took me 20 hours to train 100 epochs

How to run main.py

Hello, first of all thank you release the code.
When I used this command python main.py --model fsrnet, it shows this error

RuntimeError: Given groups=1, weight of size [64, 64, 3, 3], expected input[1, 1, 254, 254] to have 64 channels, but got 1 channels instead

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.