New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Train from scratch not working #2
Comments
Thanks for the report. |
Thanks for your support, |
I correct the script. Maybe you can check the commit history for more details. |
I have cloned it again, but the error is existed |
The script works well for me. Maybe you should check your environment. |
Thanks again, I cloned it twice and face with this error: |
what's the timm version? |
0.3.4 |
I have run your code multiple times and faced with the following error. The error is related to create_model, which also when you track the error you realize that it is related to "is_model" in timm library Line 315 in f888a29
the error is as follows: raise RuntimeError('Unknown model (%s)' % model_name) This is due to the fact that "ps_vit_b_14" is not defined in timm library to be recognized. I guess you have modified timm for your own code or your missed something in your uploaded code. |
I have checked the installation pipeline in a new environment, and I cannot reproduce the issue. |
for cloning your repository I have changed git clone git@github.com:yuexy/PS-ViT.git to git clone https://github.com/yuexy/PS-ViT.git because of this error:
Please make sure you have the correct access rights in the code I only comment import models at line 9 because of not used in your main.py and in line 51 change initial-checkpoint to initial_checkpoint when I debug the code after line that create_model is called, the code go on the timm library, and ps_vit_b_14 is not defined on timm. maybe I should do something in the timm library like comy the model file on the timm library path or something else. it is clear that timm library version of 0.3.4 not included ps_vit. |
Thanks for your help by setting up ps_vit again(build.py) I finally resolve my issues |
Thanks for your feedback. I guess I can close this issue then. :) |
I have done your installation setup step-by-step, but unfortunately the train from scratch bash file not working. this is the log file that code have generated on the output file
usage: main.py [-h] [--data DIR] [--data_train_root DATA_TRAIN_ROOT]
[--data_train_label DATA_TRAIN_LABEL]
[--data_val_root DATA_VAL_ROOT]
[--data_val_label DATA_VAL_LABEL] [--model MODEL]
[--pretrained] [--initial-checkpoint PATH] [--resume PATH]
[--eval_checkpoint PATH] [--no-resume-opt] [--num-classes N]
[--gp POOL] [--img-size N] [--crop-pct N]
[--mean MEAN [MEAN ...]] [--std STD [STD ...]]
[--interpolation NAME] [-b N] [-vb N] [--opt OPTIMIZER]
[--opt-eps EPSILON] [--opt-betas BETA [BETA ...]]
[--momentum M] [--weight-decay WEIGHT_DECAY] [--clip-grad NORM]
[--sched SCHEDULER] [--lr LR]
[--lr-noise pct, pct [pct, pct ...]] [--lr-noise-pct PERCENT]
[--lr-noise-std STDDEV] [--lr-cycle-mul MULT]
[--lr-cycle-limit N] [--warmup-lr LR] [--min-lr LR]
[--epochs N] [--start-epoch N] [--decay-epochs N]
[--warmup-epochs N] [--cooldown-epochs N] [--patience-epochs N]
[--decay-rate RATE] [--no-aug] [--scale PCT [PCT ...]]
[--ratio RATIO [RATIO ...]] [--hflip HFLIP] [--vflip VFLIP]
[--color-jitter PCT] [--aa NAME] [--aug-splits AUG_SPLITS]
[--jsd] [--reprob PCT] [--remode REMODE] [--recount RECOUNT]
[--resplit] [--mixup MIXUP] [--cutmix CUTMIX]
[--cutmix-minmax CUTMIX_MINMAX [CUTMIX_MINMAX ...]]
[--mixup-prob MIXUP_PROB]
[--mixup-switch-prob MIXUP_SWITCH_PROB]
[--mixup-mode MIXUP_MODE] [--mixup-off-epoch N]
[--smoothing SMOOTHING]
[--train-interpolation TRAIN_INTERPOLATION] [--drop PCT]
[--drop-connect PCT] [--drop-path PCT] [--drop-block PCT]
[--bn-tf] [--bn-momentum BN_MOMENTUM] [--bn-eps BN_EPS]
[--sync-bn] [--dist-bn DIST_BN] [--split-bn] [--model-ema]
[--model-ema-force-cpu] [--model-ema-decay MODEL_EMA_DECAY]
[--seed S] [--log-interval N] [--recovery-interval N] [-j N]
[--num-gpu NUM_GPU] [--save-images] [--amp] [--apex-amp]
[--native-amp] [--channels-last] [--pin-mem] [--no-prefetcher]
[--output PATH] [--eval-metric EVAL_METRIC] [--tta N]
[--local_rank LOCAL_RANK] [--use-multi-epochs-loader]
[--distributed DISTRIBUTED] [--port PORT]
[--repeated_aug REPEATED_AUG]
main.py: error: unrecognized arguments: main.py
The text was updated successfully, but these errors were encountered: