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

How to make more attribute? #103

Open
jxust01 opened this issue Jul 8, 2021 · 4 comments
Open

How to make more attribute? #103

jxust01 opened this issue Jul 8, 2021 · 4 comments

Comments

@jxust01
Copy link

jxust01 commented Jul 8, 2021

such as eye size, pupil color,etc...

@RameenAbdal
Copy link
Owner

If you have a classifier that is able to label the attributes you want to add, you can concat these attributes to the file here : https://github.com/RameenAbdal/StyleFlow/blob/master/data/attributes.npy

@UdonDa
Copy link

UdonDa commented Apr 23, 2022

Hi, @RameenAbdal !
Have you provided the pretrained classifier used in your paper?
I cannot find it.

@xiaoxiaoxiaogu
Copy link

Did you You successfully run trainfow.py?

@xiaoxiaoxiaogu
Copy link

i meet some problem when running it
Traceback (most recent call last):
File "/home/gukaifeng/公共的/StyleFlow-master/train_flow.py", line 97, in
loss.backward()
File "/home/gukaifeng/anaconda3/lib/python3.9/site-packages/torch/_tensor.py", line 363, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph, inputs=inputs)
File "/home/gukaifeng/anaconda3/lib/python3.9/site-packages/torch/autograd/init.py", line 173, in backward
Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
File "/home/gukaifeng/anaconda3/lib/python3.9/site-packages/torch/autograd/function.py", line 253, in apply
return user_fn(self, *args)
File "/home/gukaifeng/anaconda3/lib/python3.9/site-packages/torchdiffeq/_impl/adjoint.py", line 126, in backward
aug_state = odeint(
File "/home/gukaifeng/anaconda3/lib/python3.9/site-packages/torchdiffeq/_impl/odeint.py", line 72, in odeint
shapes, func, y0, t, rtol, atol, method, options, event_fn, t_is_reversed = _check_inputs(func, y0, t, rtol, atol, method, options, event_fn, SOLVERS)
File "/home/gukaifeng/anaconda3/lib/python3.9/site-packages/torchdiffeq/_impl/misc.py", line 207, in _check_inputs
rtol = _tuple_tol('rtol', rtol, shapes)
File "/home/gukaifeng/anaconda3/lib/python3.9/site-packages/torchdiffeq/_impl/misc.py", line 115, in _tuple_tol
assert len(tol) == len(shapes), "If using tupled {} it must have the same length as the tuple y0".format(name)
AssertionError: If using tupled rtol it must have the same length as the tuple y0

Process finished with exit code 1

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

4 participants