microhum commited on
Commit
ac59498
Β·
2 Parent(s): f3298cc 92c320f

rm dockerfile

Browse files
Files changed (31) hide show
  1. Dockerfile +15 -0
  2. __init__.py β†’ ThaiVecFont/__init__.py +0 -0
  3. {data_utils β†’ ThaiVecFont/data_utils}/__init__.py +0 -0
  4. {data_utils β†’ ThaiVecFont/data_utils}/augment.py +0 -0
  5. {data_utils β†’ ThaiVecFont/data_utils}/common_utils.py +0 -0
  6. {data_utils β†’ ThaiVecFont/data_utils}/convert_ttf_to_sfd.py +0 -0
  7. {data_utils β†’ ThaiVecFont/data_utils}/relax_rep.py +0 -0
  8. {data_utils β†’ ThaiVecFont/data_utils}/svg_utils.py +0 -0
  9. {data_utils β†’ ThaiVecFont/data_utils}/svg_utils_backup.py +0 -0
  10. {data_utils β†’ ThaiVecFont/data_utils}/write_data_to_dirs.py +0 -0
  11. {data_utils β†’ ThaiVecFont/data_utils}/write_glyph_imgs.py +0 -0
  12. dataloader.py β†’ ThaiVecFont/dataloader.py +0 -0
  13. {font_sample β†’ ThaiVecFont/font_sample}/Athiti-Regular.ttf +0 -0
  14. {font_sample β†’ ThaiVecFont/font_sample}/SaoChingcha-Bold.otf +0 -0
  15. {font_sample β†’ ThaiVecFont/font_sample}/SaoChingcha-Light.otf +0 -0
  16. {font_sample β†’ ThaiVecFont/font_sample}/SaoChingcha-Regular.otf +0 -0
  17. generate.py β†’ ThaiVecFont/generate.py +0 -0
  18. {inference_model β†’ ThaiVecFont/inference_model}/950_49452.ckpt +0 -0
  19. {models β†’ ThaiVecFont/models}/__init__.py +0 -0
  20. {models β†’ ThaiVecFont/models}/image_decoder.py +0 -0
  21. {models β†’ ThaiVecFont/models}/image_encoder.py +0 -0
  22. {models β†’ ThaiVecFont/models}/modality_fusion.py +0 -0
  23. {models β†’ ThaiVecFont/models}/model_main.py +0 -0
  24. {models β†’ ThaiVecFont/models}/pos_enc.py +0 -0
  25. {models β†’ ThaiVecFont/models}/transformers.py +0 -0
  26. {models β†’ ThaiVecFont/models}/util_funcs.py +0 -0
  27. {models β†’ ThaiVecFont/models}/vgg_perceptual_loss.py +0 -0
  28. options.py β†’ ThaiVecFont/options.py +0 -0
  29. test.py β†’ ThaiVecFont/test.py +0 -0
  30. test_few_shot.py β†’ ThaiVecFont/test_few_shot.py +0 -0
  31. train.py β†’ ThaiVecFont/train.py +0 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+
9
+ RUN xargs apt-get install -y <packages.txt
10
+
11
+ COPY /home/usr/lib/python3/dist-packages/fontforge.cpython-310-x86_64-linux-gnu.so /home/usr/lib/python3.10/dist-packages/
12
+
13
+ COPY . /code/
14
+
15
+ CMD ["streamlit", "app.py", "--server.port", "7860"]
__init__.py β†’ ThaiVecFont/__init__.py RENAMED
File without changes
{data_utils β†’ ThaiVecFont/data_utils}/__init__.py RENAMED
File without changes
{data_utils β†’ ThaiVecFont/data_utils}/augment.py RENAMED
File without changes
{data_utils β†’ ThaiVecFont/data_utils}/common_utils.py RENAMED
File without changes
{data_utils β†’ ThaiVecFont/data_utils}/convert_ttf_to_sfd.py RENAMED
File without changes
{data_utils β†’ ThaiVecFont/data_utils}/relax_rep.py RENAMED
File without changes
{data_utils β†’ ThaiVecFont/data_utils}/svg_utils.py RENAMED
File without changes
{data_utils β†’ ThaiVecFont/data_utils}/svg_utils_backup.py RENAMED
File without changes
{data_utils β†’ ThaiVecFont/data_utils}/write_data_to_dirs.py RENAMED
File without changes
{data_utils β†’ ThaiVecFont/data_utils}/write_glyph_imgs.py RENAMED
File without changes
dataloader.py β†’ ThaiVecFont/dataloader.py RENAMED
File without changes
{font_sample β†’ ThaiVecFont/font_sample}/Athiti-Regular.ttf RENAMED
File without changes
{font_sample β†’ ThaiVecFont/font_sample}/SaoChingcha-Bold.otf RENAMED
File without changes
{font_sample β†’ ThaiVecFont/font_sample}/SaoChingcha-Light.otf RENAMED
File without changes
{font_sample β†’ ThaiVecFont/font_sample}/SaoChingcha-Regular.otf RENAMED
File without changes
generate.py β†’ ThaiVecFont/generate.py RENAMED
File without changes
{inference_model β†’ ThaiVecFont/inference_model}/950_49452.ckpt RENAMED
File without changes
{models β†’ ThaiVecFont/models}/__init__.py RENAMED
File without changes
{models β†’ ThaiVecFont/models}/image_decoder.py RENAMED
File without changes
{models β†’ ThaiVecFont/models}/image_encoder.py RENAMED
File without changes
{models β†’ ThaiVecFont/models}/modality_fusion.py RENAMED
File without changes
{models β†’ ThaiVecFont/models}/model_main.py RENAMED
File without changes
{models β†’ ThaiVecFont/models}/pos_enc.py RENAMED
File without changes
{models β†’ ThaiVecFont/models}/transformers.py RENAMED
File without changes
{models β†’ ThaiVecFont/models}/util_funcs.py RENAMED
File without changes
{models β†’ ThaiVecFont/models}/vgg_perceptual_loss.py RENAMED
File without changes
options.py β†’ ThaiVecFont/options.py RENAMED
File without changes
test.py β†’ ThaiVecFont/test.py RENAMED
File without changes
test_few_shot.py β†’ ThaiVecFont/test_few_shot.py RENAMED
File without changes
train.py β†’ ThaiVecFont/train.py RENAMED
File without changes