Comments (5)
Sorry, I didn't get it at all, what do you mean by "overwriting images"? And why do you want to train (or fine-tune?) two times. If you have two datasets, just fine-tune to them independently using a single meta-learned checkpoint
from latent-pose-reenactment.
I want to train two sets of the same person separately because if I load the whole dataset,
cuda out of memory error.
so to avoid that error I split the dataset in A and B and first train a datasetA then datasetB.
dataset are images-cropped generated by preprocess data.py
images are expressions or the face of a person.
driver is to take a video driver, a chekpoint and produce a video with driver.py
When selecting images I mean which images from the data set are chosen to make the output video with driver.py
By overwriting images I mean overwriting expressions or faces.
If data set A has different illumination to data set B, if I refine a meta-learned model with data set A with python3 train.py, then I repeat but with data set B, when making a driver only images are seen with the illumination of B, then B overwritten A.
I don't want to train, I want to tune.
I want to fit two dataset A and B independently, I select the latent-pose-release.pth) to train with the first dataset A, in DATASET_ROOT = path set A, I run python3 train.py
At the end of training it gives me a checkpoint.pth, if I do a driver with that checkpoint the expressions of data set A are seen, then I load that chekpoint.pth to continue training from there to data set B, I finish training and
it gives me another chekpointB.pth, but when I do a driver with the chekpointB, only images are selected from the last dataset B and not from dataset A, that's what I mean by overwrite.
from latent-pose-reenactment.
because if I load the whole dataset, cuda out of memory error.
This means that you're doing something wrong: GPU memory doesn't depend on the dataset size. Just use smaller batches. For example, with a batch size of 1 you can fine-tune on as many images as you want.
As I understood, you're trying to fine-tune a meta-learned checkpoint to dataset A, then take that fine-tuned model and fine-tune it further to dataset B. Well, we never tried that. I don't know if that will even work -- that's a research question. You'll probably need to modify the code for that, and it's entirely at your risk, I'm afraid I can't help here.
from latent-pose-reenactment.
ok I understand, another thing, can I make the checkpoint smaller?, output is always 1 gb size.
from latent-pose-reenactment.
Yes, it's not hard (just don't include discriminator, embedder, optimizer state etc. in the checkpoint) but for that you'll have to modify the code yourself.
from latent-pose-reenactment.
Related Issues (20)
- About Graph HOT 4
- Question about preprocessing Voxceleb2 HOT 4
- Some error when loading seg net HOT 4
- I found quite amount of datasets are missed in train.csv HOT 2
- wrong index of inter-ocular in pose_reconstruction_error? HOT 2
- cv2.COLOR_BGR2RGB is missing at get_identity_descriptor? HOT 2
- Some questions about training from scratch HOT 3
- jitter output HOT 1
- How to reconstruct the original uncut image with the output image?
- How to generalize more facial expressions and improve resolution?
- RuntimeError: CUDA error: all CUDA-capable devices are busy or unavailable HOT 1
- Can we use the pretrained model to drive any arbitrary video? HOT 4
- How can I see the effect of this code running. HOT 3
- crop image is blurred and the generated image has artifacts
- Speed up preprocessing step? HOT 1
- Unexpected and missing key's in state-dict when constructing DeepLabv3+ model HOT 5
- Have no access to all checkpoints HOT 4
- Training progress slow HOT 1
- `X2Face` meta model HOT 1
- Exploring PyTorch Model Conversion, Inputs, Outputs, and Audio Integration for Video Generation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from latent-pose-reenactment.