Giter Site home page Giter Site logo

Comments (2)

LLLPS666 avatar LLLPS666 commented on July 23, 2024

hello, have you solved this promble?
I can ues it to fine tune. But the model would be worse after training.
My training config is

python scripts/train.py
--dataset_type my_data_encode
--exp_dir my_model/mye4e
--use_w_pool
--w_discriminator_lambda 0.1
--progressive_start 20000
--id_lambda 0.5
--val_interval 10000
--max_steps 200
--stylegan_size 512
--stylegan_weights pretrained_models/stylegan2-ffhq-config-f.pt
--workers 8
--batch_size 16
--test_batch_size 4
--test_workers 4
--checkpoint_path pretrained_models/e4e_ffhq_encode.pt

from encoder4editing.

omertov avatar omertov commented on July 23, 2024

Hi @juanluisrosaramos,
Sorry for the long response time,

In case it is still relevant, it seems like the file_path you provide for the stylegan_weights leads to a non-existing file, perhaps providing the absolute path to the weights file would help.
Also, just making sure that the StyleGAN checkpoint is compatible with rosinality's stylegan2-pytorch implementation, and not the nvidia's pytorch implementation. Last, I believe that the resume_training_from_ckpt would not yield the desired effect (there is no training information stored in the checkpoints I provided if thats what stored in pretrained_models/e4e_ffhq_encode.pt), you could use the --checkpoint_path flag to initialize the encoder from the pretrained weights.

As for @LLLPS666 's question - Is the error caused by the wrong stylegan_size specified? (512 instead of 1024)?

Best,
Omer

from encoder4editing.

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.