Comments (12)
I just checked again and the given Code runs fine for me. Does it say, why the syntax is invalid?
from shapenet.
Hi
I guess this Syntax
model: torch.nn.Module
(the ":")
thank you
from shapenet.
File "C:\Users\korrine\AppData\Local\Continuum\anaconda3\envs\pytorch_new\lib\site-packages\shapenet\networks\single_shape_init_.py", line 4, in
from .shape_network import ShapeNetwork as SingleShapeNetwork
File "C:\Users\korrine\AppData\Local\Continuum\anaconda3\envs\pytorch_new\lib\site-packages\shapenet\networks\single_shape\shape_network.py", line 158
def model(self, model: torch.nn.Module):
^
SyntaxError: invalid syntax
from shapenet.
Are you using python 2.7? Because this syntax should be fine with 3.x
from shapenet.
I am using python 3.7
from shapenet.
Is it possible somehow to overcome this?
thank you
from shapenet.
This should usually work. I just set up a conda environment with python 3.7 on windows and everything works for me.
To overcome this: This might be possible, but require some work. The value behind the ":" is only a type indication (also used for code completion), but it is not necessary for the code itself. Theoretically you should be able to delete these values (including the ":"). The disadvantage is, that you'd have to do it yourself and this kind of type-annotation is used quite often in this repo.
If you decide to do so, I'd be curious if this will fix your issue.
from shapenet.
Are you using python 3.6?
from shapenet.
You use 3.7 like me . saw it .
from shapenet.
I've already used it with python 3.5, 3.6 and 3.7 and never had these issues.
EDIT: The CI/CD also runs with python 3.7 without any issues (as you can see here).
from shapenet.
somehow it working after I exchanged scipy.misc import imsave with imageio in util.py
from shapenet.
Strange, but great that it works now. Maybe there was a hidden error in scipy, which propagated through all the code.
from shapenet.
Related Issues (20)
- Config reading error: 'str' object has no attribute 'items' HOT 3
- A trainging problem HOT 1
- error for prediction: reading weights HOT 7
- question: how to get values of training losses HOT 2
- question: About the number of PCA components HOT 1
- installation error HOT 4
- question about predict HOT 6
- Cat-landmark detection HOT 4
- Embed in mobile as dlib HOT 1
- wrong angle HOT 3
- delira.training.PyTorchNetworkTrainer missing argument HOT 7
- Prediction time compared with dlib HOT 5
- error while training HOT 4
- error in script predict_from_net.py HOT 3
- Grayscale faces HOT 2
- tf.train.Optimizer error HOT 1
- problem with prediction HOT 3
- pretrained weights, link broken.
- Training Question HOT 3
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 shapenet.