luee-c / figr Goto Github PK
View Code? Open in Web Editor NEWFew-shot Image Generation with Reptile
License: MIT License
Few-shot Image Generation with Reptile
License: MIT License
In validation_run
method in train.py
, at line 99 and 115 np.expand_dims method create an unnecessary dimension. It causes the following error.
File "train.py", line 223, in <module>
env.training()
File "train.py", line 165, in training
self.validation_run()
File "train.py", line 120, in validation_run
self.writer.add_image('Validation_generated', img, self.eps)
File ".../tensorboardX/writer.py", line 427, in add_image
image(tag, img_tensor, dataformats=dataformats), global_step, walltime)
File ".../tensorboardX/summary.py", line 211, in image
tensor = convert_to_HWC(tensor, dataformats)
File ".../tensorboardX/utils.py", line 98, in convert_to_HWC
assert(len(tensor.shape) == len(input_format)), "size of input tensor and input format are different"
AssertionError: size of input tensor and input format are different
add_image
method has the dataformats
parameter and its default value is CHW (channel-height-width). The code sends a four-dimensional tensor to the add_image
method. example: (1, 1, 32, 32) [not necessary dimension and causes an error, CHANNEL, HEIGHT, WIDTH]
I tried with all supported datasets.
python train.py --dataset Omniglot
python train.py --dataset Mnist
python train.py --dataset FIGR8
I will send a pull request that resolves this issue.
how can I train with a custom dataset or vocformat dataset?
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.