File size: 963 Bytes
ba90c74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# nv_size won't affect the speed too much, just several seconds
# image_size goes lower than 512 will cause the texture really bad
export CUDA_VISIBLE_DEVICES=6
python /home/jyang/projects/ObjectReal/external/matgen/text2tex/scripts/generate_texture.py \
    --input_dir /home/jyang/projects/ObjectReal/external/matgen/examples/bunny/ \
    --output_dir /home/jyang/projects/ObjectReal/external/matgen/output/bunny/metal \
    --obj_name mesh \
    --obj_file mesh.obj \
    --prompt "metal bunny" \
    --add_view_to_prompt \
    --ddim_steps 5 \
    --new_strength 1 \
    --update_strength 0.3 \
    --view_threshold 0.1 \
    --blend 0 \
    --dist 1 \
    --num_viewpoints 2 \
    --viewpoint_mode predefined \
    --use_principle \
    --update_steps 2 \
    --update_mode heuristic \
    --seed 42 \
    --post_process \
    --device "2080" \
    --uv_size 1000 \
    --image_size 512 \
    --use_objaverse # assume the mesh is normalized with y-axis as up