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

Fine-tuning Custom Dataset Error #67

Open
apecundo opened this issue Feb 11, 2023 · 1 comment
Open

Fine-tuning Custom Dataset Error #67

apecundo opened this issue Feb 11, 2023 · 1 comment

Comments

@apecundo
Copy link

Hi!

I tried finetuning my dataset (I followed the format of annotations) but I am getting this error

image

Here is the code I used:

"model = pipnet(backbone="resnet101", weights = True, num_nb=10, num_lms=68, net_stride=32,
input_size=256, meanface_type="300w", backbone_pretrained=True)

model.apply_freezing(backbone=True)
model.apply_training(
annotation_path=r"\data\TNF\test\train.txt", # or fine-tuning your custom data
num_epochs=10,
learning_rate=0.0001,
save_dir="./save/pipnet",
save_prefix="pipnet-300W-TNFfinetune-resnet101",
save_interval=1,
logging_interval=1,
device="cuda",
coordinates_already_normalized=False,
batch_size=16,
num_workers=4,
shuffle=True)
"

For reference, my folder structure looks like this

image

@ArtificialZeng
Copy link
Contributor

have you solved?

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