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

flowers_demo.sh 518 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
22
  1. #
  2. # Extract text embeddings from the encoder
  3. #
  4. FLOWER_ENCODER=lm_sje_flowers_c10_hybrid_0.00070_1_10_trainvalids.txt_iter16400.t7 \
  5. CAPTION_PATH=Data/flowers/example_captions \
  6. GPU=0 \
  7. export CUDA_VISIBLE_DEVICES=${GPU}
  8. net_txt=models/text_encoder/${FLOWER_ENCODER} \
  9. queries=${CAPTION_PATH}.txt \
  10. filenames=${CAPTION_PATH}.t7 \
  11. gpu=${GPU} \
  12. th demo/get_embedding.lua
  13. #
  14. # Generate image from text embeddings
  15. #
  16. python demo/demo.py \
  17. --cfg demo/cfg/flowers-demo.yml \
  18. --gpu ${GPU} \
  19. --caption_path ${CAPTION_PATH}.t7
Tip!

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

Comments

Loading...