periannath / neural-fonts Goto Github PK
View Code? Open in Web Editor NEWGAN을 활용한 한글 폰트 제작 프로젝트
License: Other
GAN을 활용한 한글 폰트 제작 프로젝트
License: Other
안녕하세요. GAN 한글 폰트를 만드는데 관심이 있어 작성자님의 README를 읽으며 그대로 따라해보고 있습니다.
근데 1번째 train.py를 실행시키는 과정에서 'cannot import name 'DatasetFromObj' 오류가 뜨면서 더 이상 진행할 수 없습니다.
train.py의 1번째 줄 from data import DatasetFromObj에서 오류가 나는데 도와주실 수 있을까요 ??
제 폴더 상황은 이렇습니다. package.py까지는 실행했고 이후 experiment/data/train.obj 생성까지 완료했습니다.
안녕하세요 프로젝트 참고하여 진행하다가 질문이 있습니다
우선 웹 페이지로 결과가 나오지 않아 아래와 같이 직접 실행하였습니다 (zi2zi 프로젝트를 참고하였습니다)
(font2img.py & package로 train.obj / val.obj는 제대로 나왔고 경로도 올바른 곳에 넣어 진행하였습니다)
이후 과정은 아래 두가지 옵션으로 진행합니다
CUDA_VISIBLE_DEVICES=1 python train.py --experiment_dir=experiment
--experiment_id=0
--batch_size=32
--lr=0.001
--epoch=30
--sample_steps=100
--schedule=10
--L1_penalty=100
--Lconst_penalty=15
=> train이 끝나고 나면 sample 사진을 통해 제 모델의 학습이 잘 되었음을 확인 후 아래 작업을 진행하였습니다.
CUDA_VISIBLE_DEVICES=1 python infer.py --model_dir=/home/zi2zi/experiment/checkpoint/experiment_0_batch_32
--batch_size=32
--source_obj=/home/zi2zi/experiment/data/val.obj
--embedding_ids=1
--save_dir=save_dir/
=> 다만 infer.py를 진행하고 나면 --save_dir에 준 경로에 검은색으로 된 사진들만 가득합니다
neural-font-webapp의 결과물을 보면 아래와 같이 result 폴더 가득차도록 11172자에 가까운양의 폰트 샘플들이 생성됩니다
(다만 학습 모델이 기한 만료로 받을 수 없어 나눔고딕으로만 학습하기에 폰트는 전부 나눔고딕입니다)
혹시 검은색 사진만 나오는 이유나 조언을 들을 수 있을까요?
또한 제가 학습시켜둔 checkpoint들을 해당 프로젝트에 적용한다면 어느 경로에 넣어두면 될지도 여쭙고 싶습니다 🙏🙏
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.