GithubHelp home page GithubHelp logo

Comments (5)

weihongwei-zg avatar weihongwei-zg commented on July 22, 2024

Why can we only use fine-tuning to evaluate the trained model after pre-training. And there will be errors when fine-tuning the evaluation and loading the model.

from convnext-v2.

weihongwei-zg avatar weihongwei-zg commented on July 22, 2024

python main_pretrain.py --model convnextv2_base --batch_size 8 --update_freq 8 --blr 1.5e-4 --epochs 1600 --warmup_epochs 40 --data_path /media/wangshuang/sdb/object_class/dataset --output_dir /media/wangshuang/sdb/object_class/result

python main_finetune.py --model convnextv2_base --eval true --resume /media/wangshuang/sdb/object_class/result/checkpoint-157.pth --input_size 224 --data_path /media/wangshuang/sdb/object_class/dataset

from convnext-v2.

zermatt-luo avatar zermatt-luo commented on July 22, 2024

criterion = LabelSmoothingCrossEntropy() Traceback (most recent call last): File "main_finetune.py", line 437, in main(args) File "main_finetune.py", line 351, in main optimizer=optimizer, loss_scaler=loss_scaler, model_ema=model_ema) File "/media/wangshuang/sdb/object_class/ConvNeXt-V2/utils.py", line 495, in auto_load_model model_without_ddp.load_state_dict(checkpoint['model']) File "/home/wangshuang/anaconda3/envs/yolov8/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1224, in load_state_dict self.class.name, "\n\t".join(error_msgs))) RuntimeError: Error(s) in loading state_dict for ConvNeXtV2: Missing key(s) in state_dict: "downsample_layers.0.0.weight",

Hello, may I ask if you have installed MinkowskiEngine? I tried to install from online tutorials, but the two py files MinkowskiDepthwiseConvolution and MinkowskiLinear are missing, and the rest are normal. Thanks

from convnext-v2.

zermatt-luo avatar zermatt-luo commented on July 22, 2024

Hello, may I ask if you have installed MinkowskiEngine? I tried to install from online tutorials, but the two py files MinkowskiDepthwiseConvolution and MinkowskiLinear are missing, and the rest are normal. Thanks๏ผ

from convnext-v2.

MinJunKang avatar MinJunKang commented on July 22, 2024

@XuLuo121 I think you have to install MinkowskiEngine with the author's provided version here : https://github.com/shwoo93/MinkowskiEngine/tree/5f459408e054933327873b29f1287275f3af6375

from convnext-v2.

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.