Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

birds_demo.sh 505 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  1. #
  2. # Extract text embeddings from the encoder
  3. #
  4. CUB_ENCODER=lm_sje_nc4_cub_hybrid_gru18_a1_c512_0.00070_1_10_trainvalids.txt_iter30000.t7 \
  5. CAPTION_PATH=Data/birds/example_captions \
  6. GPU=0 \
  7. export CUDA_VISIBLE_DEVICES=${GPU}
  8. net_txt=models/text_encoder/${CUB_ENCODER} \
  9. queries=${CAPTION_PATH}.txt \
  10. filenames=${CAPTION_PATH}.t7 \
  11. th demo/get_embedding.lua
  12. #
  13. # Generate image from text embeddings
  14. #
  15. python demo/demo.py \
  16. --cfg demo/cfg/birds-demo.yml \
  17. --gpu ${GPU} \
  18. --caption_path ${CAPTION_PATH}.t7
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...