Spaces:
Sleeping
Sleeping
rm dockerfile
Browse files- Dockerfile +15 -0
- __init__.py β ThaiVecFont/__init__.py +0 -0
- {data_utils β ThaiVecFont/data_utils}/__init__.py +0 -0
- {data_utils β ThaiVecFont/data_utils}/augment.py +0 -0
- {data_utils β ThaiVecFont/data_utils}/common_utils.py +0 -0
- {data_utils β ThaiVecFont/data_utils}/convert_ttf_to_sfd.py +0 -0
- {data_utils β ThaiVecFont/data_utils}/relax_rep.py +0 -0
- {data_utils β ThaiVecFont/data_utils}/svg_utils.py +0 -0
- {data_utils β ThaiVecFont/data_utils}/svg_utils_backup.py +0 -0
- {data_utils β ThaiVecFont/data_utils}/write_data_to_dirs.py +0 -0
- {data_utils β ThaiVecFont/data_utils}/write_glyph_imgs.py +0 -0
- dataloader.py β ThaiVecFont/dataloader.py +0 -0
- {font_sample β ThaiVecFont/font_sample}/Athiti-Regular.ttf +0 -0
- {font_sample β ThaiVecFont/font_sample}/SaoChingcha-Bold.otf +0 -0
- {font_sample β ThaiVecFont/font_sample}/SaoChingcha-Light.otf +0 -0
- {font_sample β ThaiVecFont/font_sample}/SaoChingcha-Regular.otf +0 -0
- generate.py β ThaiVecFont/generate.py +0 -0
- {inference_model β ThaiVecFont/inference_model}/950_49452.ckpt +0 -0
- {models β ThaiVecFont/models}/__init__.py +0 -0
- {models β ThaiVecFont/models}/image_decoder.py +0 -0
- {models β ThaiVecFont/models}/image_encoder.py +0 -0
- {models β ThaiVecFont/models}/modality_fusion.py +0 -0
- {models β ThaiVecFont/models}/model_main.py +0 -0
- {models β ThaiVecFont/models}/pos_enc.py +0 -0
- {models β ThaiVecFont/models}/transformers.py +0 -0
- {models β ThaiVecFont/models}/util_funcs.py +0 -0
- {models β ThaiVecFont/models}/vgg_perceptual_loss.py +0 -0
- options.py β ThaiVecFont/options.py +0 -0
- test.py β ThaiVecFont/test.py +0 -0
- test_few_shot.py β ThaiVecFont/test_few_shot.py +0 -0
- 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
|