Comments (3)
I have no idea about it. Could you show me your modified code?
from lightcnn.
def main(image,batchSize):
timer0 = time.time()
model = LightCNN_9Layers(num_classes=79077)
model.eval()
model = torch.nn.DataParallel(model).cuda()
checkpoint = torch.load("/scratch/user/ayu2224/CV/De-Occlude/dcgan_code_files/LightCNN/LightCNN_9Layers_checkpoint.pth.tar")
model.load_state_dict(checkpoint['state_dict'])
timer1 = time.time()
transform = transforms.Compose([transforms.ToTensor()])
count = 0
input = torch.zeros(batchSize, 1, 128, 128)
#image = image[:,0,:,:]
input = input.cuda()
image.resize_as_(input)
input = image
#print("")
#print(type(input))
#print("")
input_var = torch.autograd.Variable(input, volatile=True)
_, features = model(input_var)
timer2 = time.time()
print ("Checkpoint: ", timer1 -timer0)
print ("Model: ", timer2-timer1)
#print("coming here")
#print(type(features))
#print(features.data.size())
#print(type(features.data))
return features.data.cuda()
//here is the snippet of the code that I am using. The batchsize that I used was 64. I load the pretrained model provided by you.
from lightcnn.
I really would like advice on this as I have a deadline to meet.
from lightcnn.
Related Issues (20)
- All images in LFW are (128,128)
- LFW open and close set identification using gallery-probe list HOT 1
- I couldn't use your pre-training model. HOT 4
- Where is the LightCNN v2 implementation said to have been updated in section 'updates'
- Finetune LightCNN29 on the other dataset
- Can you public the model fine-tune on casia nir-vis 2.0?
- Exploding Gradients HOT 1
- Could you share the MS-Celeb-1M dataset? HOT 2
- 3通道图像如何直接使用预训练模型 HOT 1
- What if there are multiple galleries for the same identity? HOT 1
- I can't unzip the file of model named LightCNN_29Layers_V2_checkpoint.pth
- LFW Alignment and detection
- The trained model is damaged HOT 1
- LightCNN visualization
- trainlist HOT 1
- Model Weights HOT 1
- IJB-A test protocol and result HOT 4
- Any references for v4? HOT 2
- tabular data/ noisy instances/ new datasets
- why the features are almost the same 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 lightcnn.