Comments (2)
Hi @2605759123,
You should drop the FC layer and use only the network features.
You can do it easily by loading PyTorch ResNet model weights and changing the FC layer to an identity layer:
from torch import nn
import torchvision.models as models
model = models.resnet50(pretrained=pretrained)
model.fc = nn.Identity()
from slowfast.
Thank you~
from slowfast.
Related Issues (17)
- how to prepare kinetics400 dataset to run your code? HOT 1
- Thermal diagram of key frame HOT 1
- Unable to load weights of the 'VIT_B_VTN' model HOT 1
- VTN not converging on UCF101 HOT 2
- Error with Detectron2 when using run_net.py HOT 1
- VTN input example HOT 4
- How to visualize the cls token in VTN ? HOT 2
- Visualization: how effective is a PART of frames on decision making HOT 7
- size of checkpoint file HOT 1
- Have you preprocessed the kinetics dataset? HOT 1
- Where is the code?
- VTN attention window HOT 2
- Position IDs in VTN HOT 1
- Reproducing top 1 accuracy in Figure 4 HOT 6
- How to reproduce result in live camera feed without saving as video HOT 2
- Model weights for ViT-B-VTN (1 layer) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slowfast.