Comments (7)
I tried the
the error is still:
File "main_train.py", line 106 copytree(osp.join(current_path, "ConSinGAN"), osp.join(dir2save, "ConSinGAN")) ^ SyntaxError: invalid syntax
Nevermind, I missed a closing bracket, sorry.
Changing it to
copyfile(py_file, osp.join(dir2save, py_file.split("\\")[-1]))
does work, thank you.
from consingan.
Please try
copyfile(py_file, osp.join(dir2save, py_file.split("\\")[-1]))
from consingan.
I also have the same problem .I use this way and it does work.thank you!
from consingan.
Hm, are you using Windows?
Can you add print(dir2save)
before the line that causes the error and check the output (should be something like "ConSinGAN-master/TrainedModels/scream/...").
from consingan.
my dir2save is:
TrainedModels/scream/2020_04_07_22_20_08_harmonization_train_depth_3_lr_scale_0.1_BN_act_lrelu_0.3
and yep I am using windows.
from consingan.
I guess it might have something to do with Windows using "\" instead of "/" (as Ubuntu does) in paths. Does it create the dir2save folder?
What are the paths for py_file and the osp.join() operation in line 105? Does it work if you replace "/" with "\" in py_file.split("/") line 105?
You'll likely have to replace all "/" with "\" in every operation that saves/loads files to/from the hard drive (also in training_harmonization_editing.py)
from consingan.
I've edited the line to:
line 106:
copyfile(py_file, osp.join(dir2save, py_file.split("\\"[-1]))
and this is the error:
File "main_train.py", line 106 copytree(osp.join(current_path, "ConSinGAN"), osp.join(dir2save, "ConSinGAN")) ^ SyntaxError: invalid syntax
It does create a folder in TrainedModels/scream but it only contains parameter
from consingan.
Related Issues (20)
- Is there a way to save ConSinGAN model training progress? HOT 1
- Is there a way to up the resolution size of the Harmonized Image? HOT 1
- Generate g higher resolution images HOT 3
- Image Animation
- fine-tune error HOT 3
- Harmonization IndexError HOT 4
- Harmonization Error HOT 2
- nan problem of SIFID calculation HOT 1
- Where was the article published HOT 1
- How to generate images like SinGan? HOT 2
- Hello, I'm having some problems. RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED HOT 10
- About Learning Rate Scaling HOT 1
- All the generated/Fake samples at each stages are found to be a black image.
- Hi..In my case the generated images are found to be poorer in quality (esp. local structure) unlike SINGAN HOT 1
- Running On Multiple GPUs HOT 5
- How can I trained a Grayscale image? HOT 1
- Running my images HOT 1
- Suggest to loosen the dependency on albumentations
- Hello, I have some problems.
- Reconstruction loss
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consingan.