Skip to content
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

Error while running image.py #1

Open
dhaval-zala-aivid opened this issue Sep 13, 2024 · 4 comments
Open

Error while running image.py #1

dhaval-zala-aivid opened this issue Sep 13, 2024 · 4 comments

Comments

@dhaval-zala-aivid
Copy link

cmd: python image.py DAD-COCOHead-ResNet50-best --is_full_range --config settings/DAD3DHeads_COCOHead.yml --network resnet50 --gpu_ids 0

ERROR:
train_labeled : DAD3DHeads
train_unlabeled : COCOHead
type_unsuper : ce
ulb_batch_ratio : 4.0
val_frequency : 1000
Traceback (most recent call last):
File "image.py", line 125, in
config = get_config('test')
File "/home/dhavalsinh/Desktop/research/face_direction/semiuhpe/src/config.py", line 195, in get_config
config = Config(phase)
File "/home/dhavalsinh/Desktop/research/face_direction/semiuhpe/src/config.py", line 37, in init
self.exp_detail, self.date, self.ckpt = self.test_ckpt.split('/')
ValueError: not enough values to unpack (expected 3, got 1)

I think there is some problem within the code

the same issue occurs with video.py

@hnuzhy
Copy link
Owner

hnuzhy commented Sep 13, 2024

You need to download the released weight file DAD-COCOHead-ResNet50-best from my huggingface link

@dhaval-zala-aivid
Copy link
Author

dhaval-zala-aivid commented Sep 16, 2024

@hnuzhy Again getting the same error...!!

stage1_iteration    : 50000
std_ratio           : 3.0
test_ckpt           : DAD-COCOHead-ResNet50-best.pth
test_set            : DAD3DHeads
train_labeled       : DAD3DHeads
train_unlabeled     : COCOHead
type_unsuper        : ce
ulb_batch_ratio     : 4.0
val_frequency       : 1000
Traceback (most recent call last):
  File "image.py", line 125, in <module>
    config = get_config('test')
  File "/home/dhavalsinh/Desktop/research/face_direction/semiuhpe/src/config.py", line 195, in get_config
    config = Config(phase)
  File "/home/dhavalsinh/Desktop/research/face_direction/semiuhpe/src/config.py", line 37, in __init__
    self.exp_detail, self.date, self.ckpt = self.test_ckpt.split('/')
ValueError: not enough values to unpack (expected 3, got 1)

@hnuzhy
Copy link
Owner

hnuzhy commented Sep 17, 2024

Maybe you need to change the test_ckpt into SSL1.0_r0.05_ce_effinetv2_tDyna0.75_b64_ema_RO_CO_CM_full/Julxx_xxxxxx/best, otherwise the self.exp_detail and self.date will not be parsed. Also remember to build the folder exps/SSL1.0_r0.05_ce_effinetv2_tDyna0.75_b64_ema_RO_CO_CM_full/Julxx_xxxxxx/ in your root path.

@hnuzhy
Copy link
Owner

hnuzhy commented Sep 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants