Comments (7)
Hi @Yiman-GO, I tried something just like you did
with tf.Session() as sess:
saver = tf.train.import_meta_graph('ResNet-L152.meta')
saver.restore(sess, "ResNet-L152.ckpt")
And it worked fine, hope it helps !
from tensorflow-resnet.
@GabrielXia I tried but it doesn't work. Can I have a look at your code? I am confused where to add the code.
Also, have you had an implementation on your own data successfully? I abandoned the pretrained model but! it doesn't work. it said that loss is nan. I have no idea about it.
Thank you very much.
from tensorflow-resnet.
The following code works for me where I load the weight of 2D ResNet-50 model into 3D ResNet-50 model:
with tf.Session() as sess:
# build 3D ResNet-50
saver = tf.train.import_meta_graph('/DATA/houyn/pre-trained-models/models/ResNet-L50.meta')
saver.restore(sess, '/DATA/houyn/pre-trained-models/models/ResNet-L50.ckpt')
var_list = saver._var_list
value=[]
for i in range(265):
tmp = sess.run(var_list[i], feed_dict={})
if tmp.shape[0] < 10:
tmp = [tmp / 1.0 / tmp.shape[0] for _ in range(tmp.shape[0])]
tmp = np.stack(tmp, axis=0)
value.append(tmp)
You can use PyCharm to view the variable values and its names in the debug mode.
from tensorflow-resnet.
@cardwing can you tell me where i can download 3D ResNet-50 model, thanks.
from tensorflow-resnet.
@SongleChen2015, the following URL stores the model of 3d resnet-50, please check.
https://drive.google.com/open?id=1WkNtPNqf7-O1-RvXj4auWTH6OYqA2QKG
from tensorflow-resnet.
@cardwing I have downloaded the 3d resnet-50 model, thanks. Can you show me an example about how to define a 3d renset-50 network by using tensorflow ? Thanks again.
from tensorflow-resnet.
Hi @Yiman-GO, I tried something just like you did
with tf.Session() as sess: saver = tf.train.import_meta_graph('ResNet-L152.meta') saver.restore(sess, "ResNet-L152.ckpt")
And it worked fine, hope it helps !
When I do this, get:
ValueError: At least two variables have the same name: fc/biases
How to solve it?
from tensorflow-resnet.
Related Issues (20)
- Current context was not created by the StreamExecutor cuda_driver HOT 1
- Output Node Names for the pre-trained data ? HOT 1
- inference_small function return none HOT 3
- Bug in forward.py HOT 2
- about queue_runners
- cannot download the pretrained weight
- Validation error
- image classification using resnet pre-trained HOT 12
- block function in resnet.py HOT 1
- New variables generated in moving_averages can't be assigned by caffe-model HOT 1
- Error in resnet_train.py
- can't load the pre-trained model. HOT 11
- Could you please upload a pre-trained model as .tfmodel file?
- could you please tell me why there are two ''return'' in line 25 and line 26 in convert.py
- how about imagenet txt
- AttributeError: 'NoneType' object has no attribute 'group'
- The project will worke?
- About the slim/nets/resnet_v1.py
- ERROR in inference() HOT 1
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 tensorflow-resnet.