Giter Site home page Giter Site logo

guigan's Issues

I encountered a problem while running the GUI_test.py, It seems that there doesn't exist an file named app_details.csv

Traceback (most recent call last):
File "/home/zhengwanjie/GAN_models/GUIGAN/code/GUIGAN_test.py", line 79, in
appsl, appsd = get_s_app(file_csv, st_dir)
File "/home/zhengwanjie/GAN_models/GUIGAN/code/./StyleEmbedding/load_data.py", line 93, in get_s_app
cv_file = csv.reader(open(file_csv,'r', encoding='UTF-8'))
FileNotFoundError: [Errno 2] No such file or directory: 'app_details.csv'

from model import siamese_net

the model is not exist in the whole project,so as siamese_net.
can you please tell me where the model and siamese_net is

Using the pretrained model gives error

Hi, i'm trying to test with the pretrained model mentioned here #2

However running the GUIGAN_test.py gives me an error. Not sure what i'm doing wrong.

Error:

Namespace(cuda=0)
opt.cuda is not None
Namespace(cuda=0)
opt.cuda is not None

c_cats: ['Books & Reference']

loading data

Loading time for the SubTrees in training data:0.904341 s

Time for loading training embedding:0.905231 s
NEGATIVE_FILE: results/Books & Reference

subtrees_count: 2183
train_templates_count: 1167

Time for getting Repository:0.022107 s

Time for loading real world data:0.345559 s

GENERATED_NUM,real_data_id1 303

VOCAB_SIZE: 2194
real_vocab_size: 2183

Time for unifying x_info and x_emb:0.098170 s

Traceback (most recent call last):
File "GUIGAN_test.py", line 237, in
reduced_data1 = PCA(n_components=2).fit_transform(x_emb)
File "/usr/local/lib/python3.7/dist-packages/sklearn/decomposition/_pca.py", line 369, in fit_transform
U, S, V = self._fit(X)
File "/usr/local/lib/python3.7/dist-packages/sklearn/decomposition/_pca.py", line 391, in _fit
copy=self.copy)
File "/usr/local/lib/python3.7/dist-packages/sklearn/utils/validation.py", line 556, in check_array
"if it contains a single sample.".format(array))
ValueError: Expected 2D array, got 1D array instead:
array=[].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.