Giter VIP home page Giter VIP logo

Comments (4)

scoyer avatar scoyer commented on May 12, 2024

oop! I can't use the code to train the Celeb datasets either. But my error not like this. The error is:
Traceback (most recent call last):
File "train.py", line 288, in
main()
File "train.py", line 95, in main
weight_decay=args.weight_decay)
File "/home/hezhenhao/.conda/envs/my_root/lib/python3.6/site-packages/torch/optim/sgd.py", line 56, in init
super(SGD, self).init(params, defaults)
File "/home/hezhenhao/.conda/envs/my_root/lib/python3.6/site-packages/torch/optim/optimizer.py", line 61, in init
raise ValueError("can't optimize a non-leaf Variable")
ValueError: can't optimize a non-leaf Variable

Hope someone can help me fix the issue.

from lightcnn.

AlfredXiangWu avatar AlfredXiangWu commented on May 12, 2024

@NIIAS3050 Refer to issue #12 and #4

@scoyer Refer to #1 or update your pytorch to the latest version

from lightcnn.

NIIAS3050 avatar NIIAS3050 commented on May 12, 2024

Hi again.
In your paper you wrote, that xavier and gaussian inintailization was used .
But in your Python code there is no weight initialization. In your answer in #12 you reccomend to use pretrained model as initialization. Can i use your python code to learn LightCNN from scratch?
Or it can be used only for finetuning(without modifications of course)?

from lightcnn.

scoyer avatar scoyer commented on May 12, 2024

You can learn LightCNN from scratch. I try it after I change "shuffle = True" during loading the dataset and it works well. And I think you better modify some hyper parameters if the training dataset is not MS-cele.

from lightcnn.

Related Issues (20)

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.