Giter Site home page Giter Site logo

ray-tju / mfirrn Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 2.0 6.18 MB

This repository contains the source codes for the paper "MULTI-GRANULARITY FEATURE INTERACTION AND RELATION REASONING FOR 3D DENSE ALIGNMENT AND FACE RECONSTRUCTION (ICASSP 2021)"

License: MIT License

Python 100.00%
3d-face-reconstruction 3d-face-landmark-alignment

mfirrn's Issues

About weights file

Hi! Thanks for your great job!

I want to get 3D vertices results of AFLW2000-3D with your project, and I find there is no test file and your trained weights file. Maybe I got something wrong? If not, would you mind release your model weights for the test? Hope for your reply! Thx!

One more issue about the model

The file https://github.com/leilimaster/MFIRRN/blob/main/model/Mfirrn.py in ./model has one module named 'attention'. I tried to add another module like:

import torch.nn as nn
class SELayer(nn.Module):
def init(self, channel, reduction=16):
super(SELayer, self).init()
self.avg_pool = nn.AdaptiveAvgPool2d(1)
self.fc = nn.Sequential(
nn.Linear(channel, channel // reduction, bias=False),
nn.ReLU(inplace=True),
nn.Linear(channel // reduction, channel, bias=False),
nn.Sigmoid()
)

def forward(self, x):
    b, c, _, _ = x.size()
    y = self.avg_pool(x).view(b, c)
    y = self.fc(y).view(b, c, 1, 1)
    return x * y.expand_as(x)

as a .py file and then 'import attention' in Mfirrn.py.

But, when I run the benchmark.py, it can't work.

error:
RuntimeError: Error(s) in loading state_dict for LLNet:
Unexpected key(s) in state_dict: "attention.fc.0.weight", "attention.fc.2.weight".

Could you give some guidance?

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.